X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cmds.c;h=fe57d5a26244e024ba03a5e3b099329f60a56729;hb=712367f439dcac552dc22a6ce56075f3892ac30b;hp=97702251e18458e1cc5cfd5944bef5b769d8d060;hpb=662c44a84ae3daecd4ffdea940fffce35a41b52a;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; }