summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifgre.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-06-23 23:49:52 +0000
committerdelphij <delphij@FreeBSD.org>2009-06-23 23:49:52 +0000
commite55dc5c4eb8e9b93da21c537889150f3b177e253 (patch)
tree49d38a468ae2e816db3ae5582c13e8b2d759fc28 /sbin/ifconfig/ifgre.c
parent6890bf4027e4cc291de70a201516b9ba03dc3cf7 (diff)
downloadFreeBSD-src-e55dc5c4eb8e9b93da21c537889150f3b177e253.zip
FreeBSD-src-e55dc5c4eb8e9b93da21c537889150f3b177e253.tar.gz
- Use size_t instead of int when appropriate;
- Use C99 sparse initialization. With these changes ifconfig(8) is WARNS=2 clean.
Diffstat (limited to 'sbin/ifconfig/ifgre.c')
-rw-r--r--sbin/ifconfig/ifgre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifgre.c b/sbin/ifconfig/ifgre.c
index 818340b..8bf7ede 100644
--- a/sbin/ifconfig/ifgre.c
+++ b/sbin/ifconfig/ifgre.c
@@ -89,7 +89,7 @@ static __constructor void
gre_ctor(void)
{
#define N(a) (sizeof(a) / sizeof(a[0]))
- int i;
+ size_t i;
for (i = 0; i < N(gre_cmds); i++)
cmd_register(&gre_cmds[i]);
OpenPOWER on IntegriCloud