Browse Source

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
svn/tags/lighttpd-1.4.23
Stefan Bühler 13 years ago
parent
commit
7fe794e1a2
  1. 2
      src/mod_rrdtool.c

2
src/mod_rrdtool.c

@ -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);

Loading…
Cancel
Save