projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cccc18
)
fix broken formatting
author
Eric Andersen
<andersen@codepoet.org>
Tue, 23 Dec 2003 20:37:54 +0000
(20:37 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Tue, 23 Dec 2003 20:37:54 +0000
(20:37 -0000)
libbb/xconnect.c
patch
|
blob
|
history
diff --git
a/libbb/xconnect.c
b/libbb/xconnect.c
index 10ba9477c173d6e35819cb67e2febb48b89133a2..29b984720fc437cb9a9d33c9b03b9e04085445df 100644
(file)
--- a/
libbb/xconnect.c
+++ b/
libbb/xconnect.c
@@
-39,9
+39,9
@@
unsigned short bb_lookup_port(const char *port, unsigned short default_port)
if (errno != 0 || *endptr!='\0' || endptr==port || port_long < 0 || port_long > 65535) {
struct servent *tserv = getservbyname(port, "tcp");
if (tserv) {
- port_nr = tserv->s_port;
- }
- } else {
+
port_nr = tserv->s_port;
+
}
+
} else {
port_nr = htons(port_long);
}
errno = old_errno;