summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-03-25 16:37:24 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2017-03-25 16:52:02 -0700
commit8128b3f414f494af1708df627851a8483aeb3160 (patch)
treebc899637d39ebff7f642ab8d7778a94ed35828f4 /src
parenta21b85887a5565e308a84ec7bcf5656d7500163c (diff)
vmon: two trivial cleanups
Diffstat (limited to 'src')
-rw-r--r--src/vmon.c3
1 files changed, 1 insertions, 2 deletions
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;
}
© All Rights Reserved