X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdf.c;h=d8108e3f80bcbf6cd91da5337787efc63e901eaf;hb=4e89060ceb1a14ec7f9abfe9caa6b0da7e76bd5c;hp=688c32229a133e6d62c28c49bf4b03c69d04cb22;hpb=29e3c6c5c3936b75f16811071e77904900edd86e;p=collectd.git diff --git a/src/df.c b/src/df.c index 688c3222..d8108e3f 100644 --- a/src/df.c +++ b/src/df.c @@ -55,10 +55,10 @@ static ignorelist_t *il_device = NULL; static ignorelist_t *il_mountpoint = NULL; static ignorelist_t *il_fstype = NULL; -static _Bool by_device = 0; -static _Bool report_inodes = 0; -static _Bool values_absolute = 1; -static _Bool values_percentage = 0; +static bool by_device; +static bool report_inodes; +static bool values_absolute = true; +static bool values_percentage; static int df_init(void) { if (il_device == NULL) @@ -203,9 +203,7 @@ static int df_read(void) { continue; if (STATANYFS(mnt_ptr->dir, &statbuf) < 0) { - char errbuf[1024]; - ERROR(STATANYFS_STR "(%s) failed: %s", mnt_ptr->dir, - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR(STATANYFS_STR "(%s) failed: %s", mnt_ptr->dir, STRERRNO); continue; }