X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdf.c;h=5c08ca4a145bdf91ccb514b3e36a7da4d0efd582;hb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;hp=688c32229a133e6d62c28c49bf4b03c69d04cb22;hpb=29e3c6c5c3936b75f16811071e77904900edd86e;p=collectd.git diff --git a/src/df.c b/src/df.c index 688c3222..5c08ca4a 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 = 0; +static bool report_inodes = 0; +static bool values_absolute = 1; +static bool values_percentage = 0; 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; }