whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -716,7 +716,7 @@ handle_dir_common(int opts)
|
||||
/* STAT <filename> */
|
||||
cmdio_write_raw(STR(FTP_STATFILE_OK)"-File status:\r\n");
|
||||
while (1) {
|
||||
line = xmalloc_fgetline(ls_fp);
|
||||
line = xmalloc_fgetline(ls_fp);
|
||||
if (!line)
|
||||
break;
|
||||
/* Hack: 0 results in no status at all */
|
||||
@@ -731,7 +731,7 @@ handle_dir_common(int opts)
|
||||
int remote_fd = get_remote_transfer_fd(" Directory listing");
|
||||
if (remote_fd >= 0) {
|
||||
while (1) {
|
||||
line = xmalloc_fgetline(ls_fp);
|
||||
line = xmalloc_fgetline(ls_fp);
|
||||
if (!line)
|
||||
break;
|
||||
/* I've seen clients complaining when they
|
||||
|
||||
@@ -364,7 +364,7 @@ wait_for_reply(len_and_sockaddr *from_lsa, struct sockaddr *to)
|
||||
read_len = recv_from_to(rcvsock,
|
||||
recv_pkt, sizeof(recv_pkt),
|
||||
/*flags:*/ 0,
|
||||
&from_lsa->u.sa, to, from_lsa->len);
|
||||
&from_lsa->u.sa, to, from_lsa->len);
|
||||
}
|
||||
|
||||
return read_len;
|
||||
|
||||
@@ -66,7 +66,7 @@ struct dyn_lease* FAST_FUNC add_lease(
|
||||
char *p;
|
||||
if (hostname_len > sizeof(oldest->hostname))
|
||||
hostname_len = sizeof(oldest->hostname);
|
||||
p = safe_strncpy(oldest->hostname, hostname, hostname_len);
|
||||
p = safe_strncpy(oldest->hostname, hostname, hostname_len);
|
||||
/* sanitization (s/non-ASCII/^/g) */
|
||||
while (*p) {
|
||||
if (*p < ' ' || *p > 126)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
static const uint8_t len_of_option_as_string[] = {
|
||||
[OPTION_IP] = sizeof("255.255.255.255 "),
|
||||
[OPTION_IP_PAIR] = sizeof("255.255.255.255 ") * 2,
|
||||
[OPTION_STATIC_ROUTES]= sizeof("255.255.255.255/32 255.255.255.255 "),
|
||||
[OPTION_STATIC_ROUTES]= sizeof("255.255.255.255/32 255.255.255.255 "),
|
||||
[OPTION_STRING] = 1,
|
||||
#if ENABLE_FEATURE_UDHCP_RFC3397
|
||||
[OPTION_STR1035] = 1,
|
||||
|
||||
Reference in New Issue
Block a user