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