summaryrefslogtreecommitdiff
path: root/libbb/xconnect.c
diff options
context:
space:
mode:
authorEric Andersen2003-12-23 20:37:54 +0000
committerEric Andersen2003-12-23 20:37:54 +0000
commit3a5ed56803dae1915d7ad52de26b020bb81b01f5 (patch)
treecd7cc6f557ae6ac07e7b84d8379da9af684a2032 /libbb/xconnect.c
parent9cccc18141090190083cbe25aa72e37d3f906ca0 (diff)
downloadbusybox-3a5ed56803dae1915d7ad52de26b020bb81b01f5.zip
busybox-3a5ed56803dae1915d7ad52de26b020bb81b01f5.tar.gz
fix broken formatting
Diffstat (limited to 'libbb/xconnect.c')
-rw-r--r--libbb/xconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/xconnect.c b/libbb/xconnect.c
index 10ba947..29b9847 100644
--- 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;