summaryrefslogtreecommitdiffstats
path: root/xtables.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-04-06 15:41:33 +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-04-06 15:41:33 +0000
commit138c7cf7f8614051e83bec82535b0b31881082ed (patch)
tree10e5e1471b4db10f30a285f4804db3944f049823 /xtables.c
parent71ebd7f7577ce2c1296837a0278bd88f90084fe4 (diff)
[PATCH 04/24] Drop -W from CFLAGS and some tiny code cleanups
- change "unsigned" to explicit "unsigned int" - remove some casts
Diffstat (limited to 'xtables.c')
-rw-r--r--xtables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtables.c b/xtables.c
index af4d3dc..dba9081 100644
--- a/xtables.c
+++ b/xtables.c
@@ -257,7 +257,7 @@ int service_to_port(const char *name, const char *proto)
u_int16_t parse_port(const char *port, const char *proto)
{
- unsigned portnum;
+ unsigned int portnum;
if ((string_to_number(port, 0, 65535, &portnum)) != -1 ||
(portnum = service_to_port(port, proto)) != (unsigned)-1)