X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cmd_getthreshold.c;h=63e26e06e481a187de4d6c19a04874075c999344;hb=ac6580fd886d45a66506fe710a6fea0f48368dcb;hp=78f9a75ab0b0c1da92f40b295ec6d751ff1c2573;hpb=47c86ace348a1d7a5352a83d10935209f89aa4f5;p=collectd.git diff --git a/src/utils_cmd_getthreshold.c b/src/utils_cmd_getthreshold.c index 78f9a75a..63e26e06 100644 --- a/src/utils_cmd_getthreshold.c +++ b/src/utils_cmd_getthreshold.c @@ -36,9 +36,8 @@ #define print_to_socket(fh, ...) \ if (fprintf(fh, __VA_ARGS__) < 0) { \ - char errbuf[1024]; \ WARNING("handle_getthreshold: failed to write to socket #%i: %s", \ - fileno(fh), sstrerror(errno, errbuf, sizeof(errbuf))); \ + fileno(fh), STRERRNO); \ return -1; \ }