summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4fcf5bb)
raw | patch | inline | side by side (parent: 4fcf5bb)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 14 Jan 2008 16:52:49 +0000 (16:52 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 14 Jan 2008 16:52:49 +0000 (16:52 +0000) |
src/rrd_cgi.c | patch | blob | history | |
src/rrd_create.c | patch | blob | history |
diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c
index 844f9ac6ebe5b310db2c5253b9a1246fbe647373..5e66095cfaae1b0d2091cd9deb1801a9cf395d8c 100644 (file)
--- a/src/rrd_cgi.c
+++ b/src/rrd_cgi.c
/* try to find out if there's already such a variable */
for (k = 0; k < i && (strncmp(result[k]->name, cp, esp - cp)
- || !(strlen(result[k]->name) == (size_t)(esp - cp)));
- k++);
+ || !(strlen(result[k]->name) ==
+ (size_t) (esp - cp))); k++);
if (k == i) { /* No such variable yet */
if ((result[i] = (s_var *) malloc(sizeof(s_var))) == NULL)
diff --git a/src/rrd_create.c b/src/rrd_create.c
index f948f3aa5fef6337a88b9d31128d49d18c5ef50c..35a564bfc08411d31bc19f105681a0fb1ceaa20f 100644 (file)
--- a/src/rrd_create.c
+++ b/src/rrd_create.c
rrd_file_t *rrd_file_dn;
rrd_t rrd_dn;
- if ((rrd_file =
- open(file_name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
+ if ((rrd_file = open(file_name, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
rrd_set_error("creating '%s': %s", file_name, rrd_strerror(errno));
rrd_free(rrd);
return (-1);