lots of silly indent fixes

This commit is contained in:
Denis Vlasenko 2006-10-03 19:56:34 +00:00
parent cf94446af7
commit 9275814a9e
12 changed files with 143 additions and 144 deletions

View File

@ -553,7 +553,7 @@ static void parse_conf(const char *path, int flag)
} else if ((cf[1] == '.') && (cf[2] == '/' || cf[2] == 0)) {
++cf;
if (p > p0) {
while (*--p != '/'); /* omit previous dir */
while (*--p != '/') /* omit previous dir */;
}
continue;
}
@ -1571,7 +1571,7 @@ BAD_REQUEST:
/* protect out root */
goto BAD_REQUEST;
}
while (*--purl != '/'); /* omit previous dir */
while (*--purl != '/') /* omit previous dir */;
continue;
}
}

View File

@ -1000,7 +1000,7 @@ traceroute_main(int argc, char *argv[])
* set the ip source address of the outbound
* probe (e.g., on a multi-homed host).
*/
if (getuid()) bb_error_msg_and_die("-s %s: Permission denied", source);
if (getuid()) bb_error_msg_and_die("-s %s: permission denied", source);
}
if(waittime_str)
waittime = str2val(waittime_str, "wait time", 2, 24 * 60 * 60);
@ -1015,7 +1015,7 @@ traceroute_main(int argc, char *argv[])
for(l_sr = sourse_route_list; l_sr; ) {
if (lsrr >= NGATEWAYS)
bb_error_msg_and_die("No more than %d gateways", NGATEWAYS);
bb_error_msg_and_die("no more than %d gateways", NGATEWAYS);
getaddr(gwlist + lsrr, l_sr->data);
++lsrr;
l_sr = l_sr->link;

View File

@ -271,7 +271,6 @@ static void input_backward(int num)
if (num < 4)
while (num-- > 0)
putchar('\b');
else
printf("\033[%dD", num);
} else {
@ -1081,8 +1080,8 @@ static void input_tab(int *lastWasTab)
int i, j, n, srt;
/* bubble */
n = num_matches;
for(i=0; i<(n-1); i++)
for(j=i+1; j<n; j++)
for(i=0; i<(n-1); i++) {
for(j=i+1; j<n; j++) {
if(matches[i]!=NULL && matches[j]!=NULL) {
srt = strcmp(matches[i], matches[j]);
if(srt == 0) {
@ -1097,6 +1096,8 @@ static void input_tab(int *lastWasTab)
add_char_to_match[j] = srt;
}
}
}
}
j = n;
n = 0;
for(i=0; i<j; i++)

View File

@ -75,7 +75,6 @@ int fdformat_main(int argc,char **argv)
/* do not test major - perhaps this was an USB floppy */
}
/* O_RDWR for formatting and verifying */
fd = xopen(*argv, O_RDWR);
@ -90,8 +89,7 @@ int fdformat_main(int argc,char **argv)
xioctl(fd, FDFMTBEG, NULL, "FDFMTBEG");
/* n == track */
for (n = 0; n < param.track; n++)
{
for (n = 0; n < param.track; n++) {
descr.head = 0;
descr.track = n;
xioctl(fd, FDFMTTRK, &descr, "FDFMTTRK");
@ -114,11 +112,13 @@ int fdformat_main(int argc,char **argv)
printf("Verifying... ");
for (cyl = 0; cyl < param.track; cyl++) {
printf("%3d\b\b\b", cyl);
if((read_bytes = safe_read(fd,data,n))!= n ) {
read_bytes = safe_read(fd, data, n);
if (read_bytes != n) {
if (read_bytes < 0) {
bb_perror_msg(bb_msg_read_error);
}
bb_error_msg_and_die("Problem reading cylinder %d, expected %d, read %d", cyl, n, read_bytes);
bb_error_msg_and_die("problem reading cylinder %d, expected %d, read %d", cyl, n, read_bytes);
// FIXME: maybe better seek & continue??
}
/* Check backwards so we don't need a counter */
while (--read_bytes >= 0) {

View File

@ -4506,8 +4506,7 @@ change_sysid(void)
label_sun != current_label_type && !get_nr_sects(p))
{
printf(_("Partition %d does not exist yet!\n"), i + 1);
}else{
while (1) {
} else while (1) {
sys = read_hex (get_sys_types());
if (!sys && label_sgi != current_label_type &&
@ -4575,7 +4574,6 @@ change_sysid(void)
}
}
}
}
#endif /* CONFIG_FEATURE_FDISK_WRITABLE */