From 7e3cf5f461eb4fbb7581672bf0835da07c378136 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 13:03:48 +0100 Subject: tighten formatting rules --- src/nat/gnunet-service-nat_mini.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/nat/gnunet-service-nat_mini.c') diff --git a/src/nat/gnunet-service-nat_mini.c b/src/nat/gnunet-service-nat_mini.c index 1382010bd..ae94e3f5b 100644 --- a/src/nat/gnunet-service-nat_mini.c +++ b/src/nat/gnunet-service-nat_mini.c @@ -443,8 +443,7 @@ process_refresh_output (void *cls, const char *line) * * "%s TCP PORT->STRING:OURPORT *" or * "%s UDP PORT->STRING:OURPORT *" - */ - GNUNET_snprintf (pstr, sizeof(pstr), ":%u ", mini->port); + */GNUNET_snprintf (pstr, sizeof(pstr), ":%u ", mini->port); if (NULL == (s = strstr (line, "->"))) return; /* skip */ if (NULL == strstr (s, pstr)) @@ -554,8 +553,7 @@ process_map_output (void *cls, const char *line) * The upnpc output we're after looks like this: * * "external 87.123.42.204:3000 TCP is redirected to internal 192.168.2.150:3000" - */ - if ((NULL == (ipaddr = strstr (line, " "))) || + */if ((NULL == (ipaddr = strstr (line, " "))) || (NULL == (pstr = strstr (ipaddr, ":"))) || (1 != sscanf (pstr + 1, "%u", &port))) { -- cgit v1.2.3