summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifclone.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/ifclone.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/ifclone.c')
-rw-r--r--sbin/ifconfig/ifclone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifclone.c b/sbin/ifconfig/ifclone.c
index aba974e..1ce92c8 100644
--- a/sbin/ifconfig/ifclone.c
+++ b/sbin/ifconfig/ifclone.c
@@ -179,13 +179,13 @@ clone_Copt_cb(const char *optarg __unused)
list_cloners();
exit(0);
}
-static struct option clone_Copt = { "C", "[-C]", clone_Copt_cb };
+static struct option clone_Copt = { .opt = "C", .opt_usage = "[-C]", .cb = clone_Copt_cb };
static __constructor void
clone_ctor(void)
{
#define N(a) (sizeof(a) / sizeof(a[0]))
- int i;
+ size_t i;
for (i = 0; i < N(clone_cmds); i++)
cmd_register(&clone_cmds[i]);
OpenPOWER on IntegriCloud