diff options
author | luigi <luigi@FreeBSD.org> | 2012-07-30 10:55:23 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2012-07-30 10:55:23 +0000 |
commit | d8e2c218a2f038ccc70ed8fe056b40c23f743930 (patch) | |
tree | bb2da67336098c00fc68c385ace105f6b2d5574f /sbin/ipfw/nat.c | |
parent | 22e90367b6a306c0a5627973056fd5da0c68e413 (diff) | |
download | FreeBSD-src-d8e2c218a2f038ccc70ed8fe056b40c23f743930.zip FreeBSD-src-d8e2c218a2f038ccc70ed8fe056b40c23f743930.tar.gz |
Fix some compile errors at high WARNS, including one
for an uninitialized variable.
unused parameters and variables are annotated with
(void)foo; /* UNUSED */
instead of __unused, because this code needs to build
also on linux and windows.
Diffstat (limited to 'sbin/ipfw/nat.c')
-rw-r--r-- | sbin/ipfw/nat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ipfw/nat.c b/sbin/ipfw/nat.c index 6bec36c..9b4ac84 100644 --- a/sbin/ipfw/nat.c +++ b/sbin/ipfw/nat.c @@ -318,6 +318,7 @@ estimate_redir_addr(int *ac, char ***av) char *sep = **av; u_int c = 0; + (void)ac; /* UNUSED */ while ((sep = strchr(sep, ',')) != NULL) { c++; sep++; @@ -379,6 +380,7 @@ estimate_redir_port(int *ac, char ***av) char *sep = **av; u_int c = 0; + (void)ac; /* UNUSED */ while ((sep = strchr(sep, ',')) != NULL) { c++; sep++; |