projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SNMP Agent plugin: Fix - not every OID is unregistered from snmp table
[collectd.git]
/
src
/
utils_cmd_listval.c
diff --git
a/src/utils_cmd_listval.c
b/src/utils_cmd_listval.c
index
3640630
..
24ec942
100644
(file)
--- a/
src/utils_cmd_listval.c
+++ b/
src/utils_cmd_listval.c
@@
-34,8
+34,6
@@
#include "utils_parse_option.h"
cmd_status_t cmd_parse_listval(size_t argc, char **argv,
#include "utils_parse_option.h"
cmd_status_t cmd_parse_listval(size_t argc, char **argv,
- cmd_listval_t *ret_listval
- __attribute__((unused)),
const cmd_options_t *opts
__attribute__((unused)),
cmd_error_handler_t *err) {
const cmd_options_t *opts
__attribute__((unused)),
cmd_error_handler_t *err) {
@@
-62,9
+60,8
@@
cmd_status_t cmd_parse_listval(size_t argc, char **argv,
#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_listval: failed to write to socket #%i: %s", fileno(fh), \
WARNING("handle_listval: failed to write to socket #%i: %s", fileno(fh), \
-
sstrerror(errno, errbuf, sizeof(errbuf)));
\
+
STRERRNO);
\
free_everything_and_return(CMD_ERROR); \
} \
fflush(fh); \
free_everything_and_return(CMD_ERROR); \
} \
fflush(fh); \
@@
-104,7
+101,3
@@
cmd_status_t cmd_handle_listval(FILE *fh, char *buffer) {
free_everything_and_return(CMD_OK);
} /* cmd_status_t cmd_handle_listval */
free_everything_and_return(CMD_OK);
} /* cmd_status_t cmd_handle_listval */
-
-void cmd_destroy_listval(cmd_listval_t *listval __attribute__((unused))) {
- /* nothing to do */
-} /* void cmd_destroy_listval */