chiark
/
gitweb
/
~mdw
/
preload-hacks
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0415c10
)
noip.c (encode_inet_addr): Hoist `found' label to top-level.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Jun 2018 18:55:44 +0000
(19:55 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/noip.c
b/noip.c
index 4edae546e87fe15f334c08e207feb6b3ab394bcc..31616de337ac01911be0fce63a3309043e90fffa 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);
errno = EADDRINUSE;
D( fprintf(stderr, " -- can't resolve\n"); )
return (-1);
- found:;
}
}
+found:
D( fprintf(stderr, " -> `%s'\n", sun->sun_path); )
return (0);
}
D( fprintf(stderr, " -> `%s'\n", sun->sun_path); )
return (0);
}