remove some signed/unsigned and one const/!const warning
This commit is contained in:
parent
d5c4f3cf08
commit
b29749721a
@ -319,7 +319,7 @@ StrToAddrAndPortRange (const char* str, struct in_addr* addr, char* proto,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
setup_redir_addr(char *spool_buf, int len,
|
setup_redir_addr(char *spool_buf, unsigned int len,
|
||||||
int *_ac, char ***_av)
|
int *_ac, char ***_av)
|
||||||
{
|
{
|
||||||
char **av, *sep; /* Token separator. */
|
char **av, *sep; /* Token separator. */
|
||||||
@ -384,7 +384,7 @@ setup_redir_addr(char *spool_buf, int len,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
setup_redir_port(char *spool_buf, int len,
|
setup_redir_port(char *spool_buf, unsigned int len,
|
||||||
int *_ac, char ***_av)
|
int *_ac, char ***_av)
|
||||||
{
|
{
|
||||||
char **av, *sep, *protoName;
|
char **av, *sep, *protoName;
|
||||||
@ -575,7 +575,7 @@ setup_redir_port(char *spool_buf, int len,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
setup_redir_proto(char *spool_buf, int len,
|
setup_redir_proto(char *spool_buf, unsigned int len,
|
||||||
int *_ac, char ***_av)
|
int *_ac, char ***_av)
|
||||||
{
|
{
|
||||||
char **av;
|
char **av;
|
||||||
@ -858,8 +858,8 @@ ipfw_config_nat(int ac, char **av)
|
|||||||
if (!co.do_quiet) {
|
if (!co.do_quiet) {
|
||||||
/* After every modification, we show the resultant rule. */
|
/* After every modification, we show the resultant rule. */
|
||||||
int _ac = 3;
|
int _ac = 3;
|
||||||
char *_av[] = {"show", "config", id};
|
const char *_av[] = {"show", "config", id};
|
||||||
ipfw_show_nat(_ac, _av);
|
ipfw_show_nat(_ac, (char **)(void *)_av);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user