X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_cmd_getthreshold.c;h=c1f3f562ca4c924b7794759fc505e72664e24e3f;hb=4c4988b1c5d33ed70b2d6d6e5a4eae13cab9255b;hp=8cc1d21caa9b7b0fcf7e1e8b8bb50ddbf5330a07;hpb=7b8851b26928b609ce850e78c1eabb50ff319244;p=collectd.git diff --git a/src/utils_cmd_getthreshold.c b/src/utils_cmd_getthreshold.c index 8cc1d21c..c1f3f562 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; \ }