From 213e185afbb298e6708881e4c2adffdc47a8b6da Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 27 Jan 2009 17:24:34 +0100 Subject: src: remove redundant casts All of them are implicitly convertable without any wanted side effects. Signed-off-by: Jan Engelhardt --- xtables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xtables.c') diff --git a/xtables.c b/xtables.c index abdd283b..ecfbccf3 100644 --- a/xtables.c +++ b/xtables.c @@ -262,7 +262,7 @@ u_int16_t parse_port(const char *port, const char *proto) if ((string_to_number(port, 0, 65535, &portnum)) != -1 || (portnum = service_to_port(port, proto)) != (unsigned)-1) - return (u_int16_t)portnum; + return portnum; exit_error(PARAMETER_PROBLEM, "invalid port/service `%s' specified", port); -- cgit v1.2.3