summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-04-07 19:56:29 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2014-04-08 15:56:29 +0200
commit147d50a961878d38ad593b8d68666ddf835ed2cf (patch)
tree94b042b96a87291da532cc1b66f0f4bca39d080c /ir/lpp
parentdf73f95b590338a93de60976f1327097b6cc9837 (diff)
all: Make formatting of else clauses more consistent.
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/lpp/lpp_net.c b/ir/lpp/lpp_net.c
index d2c954a..c693dea 100644
--- a/ir/lpp/lpp_net.c
+++ b/ir/lpp/lpp_net.c
@@ -93,9 +93,9 @@ static int connect_tcp(const char *host, uint16_t port)
sin.sin_family = AF_INET;
sin.sin_port = htons(port);
- if ((phe = gethostbyname(host)))
+ if ((phe = gethostbyname(host))) {
memcpy(&sin.sin_addr, phe->h_addr_list[0], phe->h_length);
- else if((sin.sin_addr.s_addr = inet_addr(host)) == INADDR_NONE) {
+ } else if ((sin.sin_addr.s_addr = inet_addr(host)) == INADDR_NONE) {
lpp_print_err("cannot get host entry for %s", host);
return -1;
}