diff options
author | ru <ru@FreeBSD.org> | 2004-01-26 10:27:18 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-01-26 10:27:18 +0000 |
commit | 0455fe1058b9ad95f74f2f7e78bdc84e8463f79a (patch) | |
tree | 19c1d148874db0b1a5c18f726c2a1fc177e69dc5 /usr.sbin/ngctl/list.c | |
parent | b2153115982e1f5278468840fc4b6baec415a64a (diff) | |
download | FreeBSD-src-0455fe1058b9ad95f74f2f7e78bdc84e8463f79a.zip FreeBSD-src-0455fe1058b9ad95f74f2f7e78bdc84e8463f79a.tar.gz |
Make this WARNS=3 clean.
Diffstat (limited to 'usr.sbin/ngctl/list.c')
-rw-r--r-- | usr.sbin/ngctl/list.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ngctl/list.c b/usr.sbin/ngctl/list.c index 93e1024..ee4a84b 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; } |