aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ngctl/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ngctl/list.c')
-rw-r--r--usr.sbin/ngctl/list.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ngctl/list.c b/usr.sbin/ngctl/list.c
index 93e1024dda09..ee4a84b37829 100644
--- a/usr.sbin/ngctl/list.c
+++ b/usr.sbin/ngctl/list.c
@@ -58,7 +58,8 @@ ListCmd(int ac, char **av)
struct ng_mesg *const resp = (struct ng_mesg *) rbuf;
struct namelist *const nlist = (struct namelist *) resp->data;
int named_only = 0;
- int k, ch, rtn = CMDRTN_OK;
+ int ch, rtn = CMDRTN_OK;
+ u_int k;
/* Get options */
optind = 1;
@@ -100,11 +101,11 @@ ListCmd(int ac, char **av)
nlist->numnames, named_only ? "named " : "");
for (k = 0; k < nlist->numnames; k++) {
char path[NG_PATHSIZ];
- char *av[3] = { "list", "-n", path };
+ char *argv[3] = { "list", "-n", path };
snprintf(path, sizeof(path),
"[%lx]:", (u_long) nlist->nodeinfo[k].id);
- if ((rtn = (*show_cmd.func)(3, av)) != CMDRTN_OK)
+ if ((rtn = (*show_cmd.func)(3, argv)) != CMDRTN_OK)
break;
}