Date: Thu, 5 Mar 2009 08:01:58 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r189395 - head/sbin/ipfw Message-ID: <200903050801.n2581wU6066869@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luigi Date: Thu Mar 5 08:01:58 2009 New Revision: 189395 URL: http://svn.freebsd.org/changeset/base/189395 Log: remove some signed/unsigned and one const/!const warning Modified: head/sbin/ipfw/nat.c Modified: head/sbin/ipfw/nat.c ============================================================================== --- head/sbin/ipfw/nat.c Thu Mar 5 08:01:19 2009 (r189394) +++ head/sbin/ipfw/nat.c Thu Mar 5 08:01:58 2009 (r189395) @@ -319,7 +319,7 @@ StrToAddrAndPortRange (const char* str, */ 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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903050801.n2581wU6066869>