From: Rinigus Date: Mon, 18 Jul 2016 20:51:44 +0000 (+0300) Subject: return statements X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6b4c85;p=thirdparty%2Fcollectd.git return statements --- diff --git a/src/statefs_battery.c b/src/statefs_battery.c index 2613848c9..c556986b9 100644 --- a/src/statefs_battery.c +++ b/src/statefs_battery.c @@ -78,7 +78,7 @@ static _Bool getvalue(const char *fname, gauge_t *value, char *buffer, size_t bu { FILE *fh; if ((fh = fopen(fname, "r")) == NULL) - return 0; + return (0); if ( fgets(buffer, buffer_size, fh) == NULL ) { @@ -90,7 +90,7 @@ static _Bool getvalue(const char *fname, gauge_t *value, char *buffer, size_t bu fclose(fh); - return 1; + return (1); } @@ -135,7 +135,7 @@ static int battery_read (void) return (-1); } - return 0; + return (0); } void module_register (void)