whitespace fixes
This commit is contained in:
@@ -484,7 +484,7 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
|
||||
ifd, exec);
|
||||
#else
|
||||
return 0; /* no dhcp support */
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
|
||||
|
@@ -350,7 +350,7 @@ create new one, and bind() it. TODO */
|
||||
close(rr);
|
||||
goto again;
|
||||
}
|
||||
|
||||
|
||||
} else
|
||||
bb_error_msg_and_die("timeout");
|
||||
unarm();
|
||||
@@ -720,7 +720,7 @@ int nc_main(int argc, char **argv)
|
||||
}
|
||||
proggie = NULL;
|
||||
e_found:
|
||||
|
||||
|
||||
// -g -G -t -r deleted, unimplemented -a deleted too
|
||||
opt_complementary = "?2:vv"; /* max 2 params, -v is a counter */
|
||||
getopt32(argc, argv, "hnp:s:uvw:" USE_NC_SERVER("l")
|
||||
|
@@ -98,13 +98,13 @@ static void build_ipv6_addr(char* local_addr, struct sockaddr_in6* localaddr)
|
||||
{
|
||||
char addr6[INET6_ADDRSTRLEN];
|
||||
struct in6_addr in6;
|
||||
|
||||
|
||||
sscanf(local_addr, "%08X%08X%08X%08X",
|
||||
&in6.s6_addr32[0], &in6.s6_addr32[1],
|
||||
&in6.s6_addr32[2], &in6.s6_addr32[3]);
|
||||
inet_ntop(AF_INET6, &in6, addr6, sizeof(addr6));
|
||||
inet_pton(AF_INET6, addr6, (struct sockaddr *) &localaddr->sin6_addr);
|
||||
|
||||
|
||||
localaddr->sin6_family = AF_INET6;
|
||||
}
|
||||
#endif
|
||||
@@ -154,7 +154,7 @@ static void snprint_ip_port(char *ip_port, int size, struct sockaddr *addr, int
|
||||
0xffffffff);
|
||||
}
|
||||
port_name = get_sname(htons(port), proto, numeric);
|
||||
|
||||
|
||||
max_len = (option_mask32 & OPT_widedisplay)
|
||||
? (PRINT_IP_MAX_SIZE_WIDE - 1)
|
||||
: (PRINT_IP_MAX_SIZE - 1);
|
||||
@@ -292,7 +292,7 @@ static void udp_do_one(int lnr, const char *line)
|
||||
(struct sockaddr *) &remaddr, rem_port,
|
||||
"udp", flags & NETSTAT_NUMERIC);
|
||||
printf(net_conn_line,
|
||||
"udp", rxq, txq, local_addr, rem_addr, state_str);
|
||||
"udp", rxq, txq, local_addr, rem_addr, state_str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -353,7 +353,7 @@ static int tftp( USE_GETPUT(const int cmd,)
|
||||
/* Server lost our TFTP_ACK. Resend it */
|
||||
block_nr = recv_blk;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (CMD_PUT(cmd) && (opcode == TFTP_ACK)) {
|
||||
|
@@ -37,8 +37,8 @@ int udhcpd_main(int argc, char **argv)
|
||||
//Huh, dhcpd don't have --foreground, --syslog options?? TODO
|
||||
|
||||
if (!ENABLE_FEATURE_UDHCP_DEBUG) {
|
||||
bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
|
||||
logmode &= ~LOGMODE_STDIO;
|
||||
bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
|
||||
logmode &= ~LOGMODE_STDIO;
|
||||
}
|
||||
|
||||
if (ENABLE_FEATURE_UDHCP_SYSLOG) {
|
||||
|
Reference in New Issue
Block a user