Fix mixed declarations and code in mod_rrdtool

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2427 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2009-04-05 21:51:00 +00:00
parent 1e69f57b50
commit 7fe794e1a2
1 changed files with 1 additions and 1 deletions

View File

@ -230,6 +230,7 @@ static ssize_t safe_read(int fd, void *buf, size_t count) {
static int mod_rrdtool_create_rrd(server *srv, plugin_data *p, plugin_config *s) {
struct stat st;
int r;
/* check if DB already exists */
if (0 == stat(s->path_rrd->ptr, &st)) {
@ -246,7 +247,6 @@ static int mod_rrdtool_create_rrd(server *srv, plugin_data *p, plugin_config *s)
return HANDLER_GO_ON;
}
int r;
/* create a new one */
buffer_copy_string_len(p->cmd, CONST_STR_LEN("create "));
buffer_append_string_buffer(p->cmd, s->path_rrd);