diff options
Diffstat (limited to 'extensions/libxt_udp.c')
-rw-r--r-- | extensions/libxt_udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libxt_udp.c b/extensions/libxt_udp.c index d4930725..b9f39ee4 100644 --- a/extensions/libxt_udp.c +++ b/extensions/libxt_udp.c @@ -60,10 +60,10 @@ static void udp_parse(struct xt_option_call *cb) } } -static char * +static const char * port_to_service(int port) { - struct servent *service; + const struct servent *service; if ((service = getservbyport(htons(port), "udp"))) return service->s_name; @@ -74,7 +74,7 @@ port_to_service(int port) static void print_port(uint16_t port, int numeric) { - char *service; + const char *service; if (numeric || (service = port_to_service(port)) == NULL) printf("%u", port); |