aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-24 15:40:16 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-24 15:40:16 +0000
commit219d14d514ca4d31b4319af14e3a64b66fe2c233 (patch)
treea74e8ce7604ff932a3990de3065c167392e4b082 /networking
parent644849a3aa0c834a942fb7777ec449d8098bcfc9 (diff)
downloadbusybox-w32-219d14d514ca4d31b4319af14e3a64b66fe2c233.tar.gz
busybox-w32-219d14d514ca4d31b4319af14e3a64b66fe2c233.tar.bz2
busybox-w32-219d14d514ca4d31b4319af14e3a64b66fe2c233.zip
random style fixes (extra spaces deleted)
Diffstat (limited to 'networking')
-rw-r--r--networking/telnet.c2
-rw-r--r--networking/udhcp/arpping.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/networking/telnet.c b/networking/telnet.c
index cd88a9b3d..5c75a7409 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -188,7 +188,7 @@ static void handlenetoutput(int len)
188 else if (*p == 0x0d) 188 else if (*p == 0x0d)
189 outbuf[j++] = 0x00; 189 outbuf[j++] = 0x00;
190 } 190 }
191 if (j > 0 ) 191 if (j > 0)
192 write(G.netfd, outbuf, j); 192 write(G.netfd, outbuf, j);
193} 193}
194 194
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c
index f78fd3fd8..615a91172 100644
--- a/networking/udhcp/arpping.c
+++ b/networking/udhcp/arpping.c
@@ -94,9 +94,11 @@ int arpping(uint32_t yiaddr, uint32_t ip, uint8_t *mac, char *interface)
94 tm.tv_sec = timeout; 94 tm.tv_sec = timeout;
95 if (select(s + 1, &fdset, (fd_set *) NULL, (fd_set *) NULL, &tm) < 0) { 95 if (select(s + 1, &fdset, (fd_set *) NULL, (fd_set *) NULL, &tm) < 0) {
96 bb_perror_msg("error on ARPING request"); 96 bb_perror_msg("error on ARPING request");
97 if (errno != EINTR) rv = 0; 97 if (errno != EINTR)
98 rv = 0;
98 } else if (FD_ISSET(s, &fdset)) { 99 } else if (FD_ISSET(s, &fdset)) {
99 if (recv(s, &arp, sizeof(arp), 0) < 0 ) rv = 0; 100 if (recv(s, &arp, sizeof(arp), 0) < 0)
101 rv = 0;
100 if (arp.operation == htons(ARPOP_REPLY) && 102 if (arp.operation == htons(ARPOP_REPLY) &&
101 memcmp(arp.tHaddr, mac, 6) == 0 && 103 memcmp(arp.tHaddr, mac, 6) == 0 &&
102 *((uint32_t *) arp.sInaddr) == yiaddr) { 104 *((uint32_t *) arp.sInaddr) == yiaddr) {