* [spp] [PATCH] spp_primary: remove nouse var in parsing command
@ 2019-01-30 6:47 ogawa.yasufumi
0 siblings, 0 replies; only message in thread
From: ogawa.yasufumi @ 2019-01-30 6:47 UTC (permalink / raw)
To: ferruh.yigit, spp, ogawa.yasufumi
From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
This patch is to remove variable `num_args` used for debugging, but not
anymore.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
src/primary/main.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/primary/main.c b/src/primary/main.c
index bb25c1b..9185e3d 100644
--- a/src/primary/main.c
+++ b/src/primary/main.c
@@ -421,7 +421,6 @@ parse_command(char *str)
char *token_list[MAX_PARAMETER] = {NULL};
char sec_name[16];
char *sec_args[NOF_TOKENS] = {NULL};
- int num_args = 0;
int ret = 0;
int i = 0;
@@ -437,7 +436,6 @@ parse_command(char *str)
sprintf(sec_name, "%s", token_list[i]);
else if (i > 2)
sec_args[i-3] = token_list[i];
- num_args++;
i++;
token_list[i] = strtok(NULL, " ");
}
--
2.7.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-30 6:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-30 6:47 [spp] [PATCH] spp_primary: remove nouse var in parsing command ogawa.yasufumi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).