summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ngctl/dot.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ngctl/dot.c')
-rw-r--r--usr.sbin/ngctl/dot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ngctl/dot.c b/usr.sbin/ngctl/dot.c
index bd6d39c..42969be 100644
--- a/usr.sbin/ngctl/dot.c
+++ b/usr.sbin/ngctl/dot.c
@@ -61,7 +61,8 @@ DotCmd(int ac, char **av)
struct ng_mesg *const nlresp = (struct ng_mesg *)nlrbuf;
struct namelist *const nlist = (struct namelist *)nlresp->data;
FILE *f = stdout;
- int ch, i;
+ int ch;
+ u_int i;
/* Get options */
optind = 1;
@@ -129,7 +130,7 @@ DotCmd(int ac, char **av)
struct hooklist *const hlist = (struct hooklist *)hlresp->data;
struct nodeinfo *const ninfo = &hlist->nodeinfo;
char path[NG_PATHSIZ];
- int j;
+ u_int j;
(void)snprintf(path, sizeof(path), "[%jx]:",
(uintmax_t)nlist->nodeinfo[i].id);
OpenPOWER on IntegriCloud