X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cmds.c;h=fe57d5a26244e024ba03a5e3b099329f60a56729;hb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;hp=97702251e18458e1cc5cfd5944bef5b769d8d060;hpb=c144ae4659e129a929afb67706a54604220fef43;p=collectd.git diff --git a/src/utils_cmds.c b/src/utils_cmds.c index 97702251..fe57d5a2 100644 --- a/src/utils_cmds.c +++ b/src/utils_cmds.c @@ -301,9 +301,8 @@ void cmd_error_fh(void *ud, cmd_status_t status, const char *format, vsnprintf(buf, sizeof(buf), format, ap); buf[sizeof(buf) - 1] = '\0'; if (fprintf(fh, "%i %s\n", code, buf) < 0) { - char errbuf[1024]; WARNING("utils_cmds: failed to write to file-handle #%i: %s", fileno(fh), - sstrerror(errno, errbuf, sizeof(errbuf))); + STRERRNO); return; }