From 0d199bb941aac7052a19dd5d75520d016fff1765 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Tue, 29 Jan 2008 13:48:05 +0000 Subject: [PATCH]: fix gcc warnings Max Kellermann --- xtables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtables.c') diff --git a/xtables.c b/xtables.c index eba453b..af4d3dc 100644 --- a/xtables.c +++ b/xtables.c @@ -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, -- cgit v1.2.3