From: Pavel Rochnyack Date: Wed, 16 May 2018 12:44:16 +0000 (+0700) Subject: cleanup: code formatting X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6d0548b0bb10958408ff018b52b52cda26b67d44;p=collectd.git cleanup: code formatting --- diff --git a/src/utils_cmds.c b/src/utils_cmds.c index 261a8287..88fdfc7f 100644 --- a/src/utils_cmds.c +++ b/src/utils_cmds.c @@ -206,8 +206,7 @@ cmd_status_t cmd_parsev(size_t argc, char **argv, cmd_t *ret_cmd, cmd_parse_getval(argc - 1, argv + 1, &ret_cmd->cmd.getval, opts, err); } else if (strcasecmp("LISTVAL", command) == 0) { ret_cmd->type = CMD_LISTVAL; - status = - cmd_parse_listval(argc - 1, argv + 1, opts, err); + status = cmd_parse_listval(argc - 1, argv + 1, opts, err); } else if (strcasecmp("PUTVAL", command) == 0) { ret_cmd->type = CMD_PUTVAL; status = diff --git a/src/utils_cmds.h b/src/utils_cmds.h index c5c8608b..f3882f54 100644 --- a/src/utils_cmds.h +++ b/src/utils_cmds.h @@ -39,13 +39,13 @@ typedef enum { CMD_PUTVAL = 4, } cmd_type_t; #define CMD_TO_STRING(type) \ - ((type) == CMD_FLUSH) ? "FLUSH" : ((type) == CMD_GETVAL) \ - ? "GETVAL" \ - : ((type) == CMD_LISTVAL) \ - ? "LISTVAL" \ - : ((type) == CMD_PUTVAL) \ - ? "PUTVAL" \ - : "UNKNOWN" + ((type) == CMD_FLUSH) \ + ? "FLUSH" \ + : ((type) == CMD_GETVAL) \ + ? "GETVAL" \ + : ((type) == CMD_LISTVAL) \ + ? "LISTVAL" \ + : ((type) == CMD_PUTVAL) ? "PUTVAL" : "UNKNOWN" typedef struct { double timeout;