diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-01-29 13:48:05 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-01-29 13:48:05 +0000 |
commit | 0d199bb941aac7052a19dd5d75520d016fff1765 (patch) | |
tree | 13f39ec579024d42beb0ce6509b0c935dbe8ca03 /xtables.c | |
parent | 4e7cb355f8e82e7d4d7c6bf6dd36a6d860a3e70f (diff) |
[PATCH]: fix gcc warnings
Max Kellermann <max@duempel.org>
Diffstat (limited to 'xtables.c')
-rw-r--r-- | xtables.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -257,10 +257,10 @@ int service_to_port(const char *name, const char *proto) u_int16_t parse_port(const char *port, const char *proto) { - unsigned int portnum; + unsigned portnum; if ((string_to_number(port, 0, 65535, &portnum)) != -1 || - (portnum = service_to_port(port, proto)) != -1) + (portnum = service_to_port(port, proto)) != (unsigned)-1) return (u_int16_t)portnum; exit_error(PARAMETER_PROBLEM, |