From 6d0548b0bb10958408ff018b52b52cda26b67d44 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Wed, 16 May 2018 19:44:16 +0700 Subject: [PATCH] cleanup: code formatting --- src/utils_cmds.c | 3 +-- src/utils_cmds.h | 14 +++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) 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; -- 2.11.0