projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
processes plugin: Fix error message.
[collectd.git]
/
src
/
utils_cmd_putnotif.c
diff --git
a/src/utils_cmd_putnotif.c
b/src/utils_cmd_putnotif.c
index
0085c62
..
75a8fae
100644
(file)
--- 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) { \
#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", \
WARNING("handle_putnotif: failed to write to socket #%i: %s", \
- fileno(fh),
sstrerror(errno, errbuf, sizeof(errbuf)));
\
+ fileno(fh),
STRERRNO);
\
return -1; \
} \
fflush(fh); \
return -1; \
} \
fflush(fh); \