X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_cmd_putnotif.c;h=75a8fae8bf7694f342d151121965ba0a77838ebe;hp=0085c62bc204aca55f9fd2ad5b8f1469f81c39d6;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=1159cb5d383c55a80a0db100b8f7aadcf44740a5 diff --git a/src/utils_cmd_putnotif.c b/src/utils_cmd_putnotif.c index 0085c62b..75a8fae8 100644 --- a/src/utils_cmd_putnotif.c +++ b/src/utils_cmd_putnotif.c @@ -35,9 +35,8 @@ #define print_to_socket(fh, ...) \ do { \ if (fprintf(fh, __VA_ARGS__) < 0) { \ - char errbuf[1024]; \ WARNING("handle_putnotif: failed to write to socket #%i: %s", \ - fileno(fh), sstrerror(errno, errbuf, sizeof(errbuf))); \ + fileno(fh), STRERRNO); \ return -1; \ } \ fflush(fh); \