X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Folsrd.c;h=6be7cb583d7f61918bd25254b29723918212c277;hb=895a5234dc9a798241747f703b05e5b51e3f5a33;hp=6d0576cf7bc7d26e39567646f40fa1ebd49262cc;hpb=791e99923dbbf045b11fbd7b0ea8df647e29593e;p=collectd.git diff --git a/src/olsrd.c b/src/olsrd.c index 6d0576cf..6be7cb58 100644 --- a/src/olsrd.c +++ b/src/olsrd.c @@ -30,7 +30,6 @@ #include #include -#include #include #include @@ -623,7 +622,7 @@ static int olsrd_read_table (FILE *fh, /* {{{ */ (*callback) (lineno, fields_num, fields); lineno++; } /* while (fgets) */ - + return (0); } /* }}} int olsrd_read_table */ @@ -666,7 +665,7 @@ static int olsrd_read (void) /* {{{ */ buffer_len = strchomp (buffer); if (buffer_len <= 0) continue; - + if (strcmp ("Table: Links", buffer) == 0) olsrd_read_table (fh, olsrd_cb_links); else if (strcmp ("Table: Neighbors", buffer) == 0) @@ -691,7 +690,7 @@ static int olsrd_read (void) /* {{{ */ } /* while (fgets) */ fclose (fh); - + return (0); } /* }}} int olsrd_read */