endchoice
### config PARSE
-### bool "Uniform config file parser debugging applet: parse"
+### bool "Uniform config file parser debugging applet: parse"
endmenu
##
## "$loc/usage" | bzip2 -1 | od -v -x \
## | $SED -e 's/^[^ ]*//' \
-## -e 's/ //g' \
-## -e '/^$/d' \
-## -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
+## -e 's/ //g' \
+## -e '/^$/d' \
+## -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
"$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -t x1 \
| $SED -e 's/^[^ ]*//' \
int oldsum, newsum, del = 0;
char *s, *name;
- oldsum = oldline + oldlen;
+ oldsum = oldline + oldlen;
newsum = newline + newlen;
name = reverse ? oldname : newname;
{
echo "let cfg=cfg+1"
-test "$interface" && echo "if[\$cfg]='$interface'"
+test "$interface" && echo "if[\$cfg]='$interface'"
test "$ip" && echo "ip[\$cfg]='$ip'"
test "$ip" && test "$mask" \
&& echo "ipmask[\$cfg]='$ip/$mask'"
}
}
next:
- free(line);
+ free(line);
}
//bb_info_msg("ENDPARSE[%s]", boundary);
/* 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 */
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
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;
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)
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,
}
END {
for (i = 0; i <= pos; i++) {
-# printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
+# printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
if (help[i] == 0) {
printf("%s: No helptext for '%s'\n", file[i], conf[i]);
}
break;
cp++;
continue;
- }
+ }
/*{*/ if ((*cp == '}' && depth-- == 0) || (*cp == ',' && depth == 0))
break;
if (*cp++ == '{') /*}*/
eval "echo \"\${val_${1}}\""
}
-val_x=24
+val_x=24
(func x)
echo Done
n=0
while :
do
- echo A
- while :
- do
- echo B
- break
- done
- echo iteration
- [ $n = 1 ] && break
+ echo A
+ while :
+ do
+ echo B
+ break
+ done
+ echo iteration
+ [ $n = 1 ] && break
echo C
- n=`expr $n + 1`
+ n=`expr $n + 1`
done
echo D
// Standard mke2fs 1.41.9:
// Usage: mke2fs [-c|-l filename] [-b block-size] [-f fragment-size]
-// [-i bytes-per-inode] [-I inode-size] [-J journal-options]
-// [-G meta group size] [-N number-of-inodes]
-// [-m reserved-blocks-percentage] [-o creator-os]
-// [-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
-// [-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
-// [-T fs-type] [-U UUID] [-jnqvFSV] device [blocks-count]
+// [-i bytes-per-inode] [-I inode-size] [-J journal-options]
+// [-G meta group size] [-N number-of-inodes]
+// [-m reserved-blocks-percentage] [-o creator-os]
+// [-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
+// [-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
+// [-T fs-type] [-U UUID] [-jnqvFSV] device [blocks-count]
//
// Options not commented below are taken but silently ignored:
enum {
nreserved = (uint64_t)nblocks * reserved_percent / 100;
// N.B. killing e2fsprogs feature! Unused blocks don't account in calculations
- nblocks_full = nblocks;
+ nblocks_full = nblocks;
// If last block group is too small, nblocks may be decreased in order
// to discard it, and control returns here to recalculate some
int dev;
unsigned bytes_per_sect;
unsigned sect_per_fat;
- unsigned opts;
+ unsigned opts;
uint16_t sect_per_track;
uint8_t media_byte;
uint8_t sect_per_clust;