summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-03-05 08:01:58 +0000
committerluigi <luigi@FreeBSD.org>2009-03-05 08:01:58 +0000
commitb29749721ad4f6cfc71a9bc46fa2458788bafd39 (patch)
treeb4e3d9ed406d808e03c81098f7acce8c767c4246 /sbin
parentd5c4f3cf085731f3aa5ee99e47dfa1f61cfe7458 (diff)
downloadFreeBSD-src-b29749721ad4f6cfc71a9bc46fa2458788bafd39.zip
FreeBSD-src-b29749721ad4f6cfc71a9bc46fa2458788bafd39.tar.gz
remove some signed/unsigned and one const/!const warning
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipfw/nat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ipfw/nat.c b/sbin/ipfw/nat.c
index bfc325a..21196bc 100644
--- a/sbin/ipfw/nat.c
+++ b/sbin/ipfw/nat.c
@@ -319,7 +319,7 @@ StrToAddrAndPortRange (const char* str, struct in_addr* addr, char* proto,
*/
static int
-setup_redir_addr(char *spool_buf, int len,
+setup_redir_addr(char *spool_buf, unsigned int len,
int *_ac, char ***_av)
{
char **av, *sep; /* Token separator. */
@@ -384,7 +384,7 @@ nospace:
}
static int
-setup_redir_port(char *spool_buf, int len,
+setup_redir_port(char *spool_buf, unsigned int len,
int *_ac, char ***_av)
{
char **av, *sep, *protoName;
@@ -575,7 +575,7 @@ nospace:
}
static int
-setup_redir_proto(char *spool_buf, int len,
+setup_redir_proto(char *spool_buf, unsigned int len,
int *_ac, char ***_av)
{
char **av;
@@ -858,8 +858,8 @@ ipfw_config_nat(int ac, char **av)
if (!co.do_quiet) {
/* After every modification, we show the resultant rule. */
int _ac = 3;
- char *_av[] = {"show", "config", id};
- ipfw_show_nat(_ac, _av);
+ const char *_av[] = {"show", "config", id};
+ ipfw_show_nat(_ac, (char **)(void *)_av);
}
}
OpenPOWER on IntegriCloud