From 8128b3f414f494af1708df627851a8483aeb3160 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 25 Mar 2017 16:37:24 -0700 Subject: vmon: two trivial cleanups --- src/vmon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/vmon.c') diff --git a/src/vmon.c b/src/vmon.c index 46d1386..3d4e5af 100644 --- a/src/vmon.c +++ b/src/vmon.c @@ -176,7 +176,6 @@ static void handle_sigchld(int signum) /* parse and apply argv, implementing an strace-like cli, mutates vmon. */ static int vmon_handle_argv(vmon_t *vmon, int argc, char * const argv[]) { - int i; char *const*end = &argv[argc - 1], *const*last = argv; assert(vmon); @@ -187,7 +186,7 @@ static int vmon_handle_argv(vmon_t *vmon, int argc, char * const argv[]) for (argv++; argv <= end; argv++) { if (is_flag(*argv, "-p", "--pid")) { if (vmon->pid) { - VWM_ERROR("--pid may only be specified once currently (TODO)", *argv); + VWM_ERROR("--pid may only be specified once currently (TODO)"); return 0; } -- cgit v1.2.3