noip.c (encode_inet_addr): Hoist `found' label to top-level.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 18:55:44 +0000 (19:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:13:05 +0000 (20:13 +0100)
No functional change: the control flow is as it was before, but this
structure invites use of the label from the other branch of the main
`if'.

noip.c

diff --git a/noip.c b/noip.c
index 4edae54..31616de 100644 (file)
--- a/noip.c
+++ b/noip.c
@@ -742,8 +742,8 @@ static int encode_inet_addr(struct sockaddr_un *sun,
     errno = EADDRINUSE;
     D( fprintf(stderr, " -- can't resolve\n"); )
     return (-1);
-  found:;
   }
+found:
   D( fprintf(stderr, " -> `%s'\n", sun->sun_path); )
   return (0);
 }