diff --git a/miniupnpd/netfilter/iptcrdr.c b/miniupnpd/netfilter/iptcrdr.c index 1b58be6..e5951e8 100644 --- a/miniupnpd/netfilter/iptcrdr.c +++ b/miniupnpd/netfilter/iptcrdr.c @@ -285,8 +285,12 @@ get_redirect_rule(const char * ifname, unsigned short eport, int proto, unsigned int * timestamp, u_int64_t * packets, u_int64_t * bytes) { - return get_nat_redirect_rule(miniupnpd_nat_chain, ifname, eport, proto, iaddr, iaddrlen, iport, - desc, desclen, rhost, rhostlen,timestamp, packets, bytes); + return get_nat_redirect_rule(miniupnpd_nat_chain, + ifname, eport, proto, + iaddr, iaddrlen, iport, + desc, desclen, + rhost, rhostlen, + timestamp, packets, bytes); } int diff --git a/miniupnpd/portinuse.c b/miniupnpd/portinuse.c index d62a9a2..2c20f48 100644 --- a/miniupnpd/portinuse.c +++ b/miniupnpd/portinuse.c @@ -32,15 +32,18 @@ char *chains_to_check[] = { "PREROUTING" , 0 }; #endif -int port_in_use(const char *if_name, unsigned eport, int proto, const char *iaddr, unsigned iport) +int +port_in_use(const char *if_name, + unsigned eport, int proto, + const char *iaddr, unsigned iport) { char line[256]; FILE *f; int found = 0; char ip_addr_str[INET_ADDRSTRLEN]; struct in_addr ip_addr; - const char tcpfile[] = "/proc/net/tcp"; - const char udpfile[] = "/proc/net/udp"; + const char * tcpfile = "/proc/net/tcp"; + const char * udpfile = "/proc/net/udp"; f = fopen((proto==IPPROTO_TCP)?tcpfile:udpfile, "r"); if (!f) return 0;