X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Futils_cmd_putnotif.c;h=75a8fae8bf7694f342d151121965ba0a77838ebe;hp=0085c62bc204aca55f9fd2ad5b8f1469f81c39d6;hb=a9e50e9e30ecde17e167e271060c8183bfcbf407;hpb=1b10ab706f8b70ce2f086e59a54cc09d671ad989 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); \