init.c, disk.c, cdrom.c, network.c: whitespace cleanup.

This commit is contained in:
Leonid Krivoshein 2018-04-22 16:12:26 +03:00
parent 485839e4cc
commit da2111e239
4 changed files with 53 additions and 56 deletions

View File

@ -213,7 +213,6 @@ enum return_type cdrom_prepare(void)
int period=5;
update_splash("prepare");
fprintf(stderr,"%c[1A",27);
for(i=0; i<timeout; i++) {
if (i % period == 0) {
@ -223,7 +222,6 @@ enum return_type cdrom_prepare(void)
if(opendir("/dev/disk/"))break;
fprintf(stderr,"\rwaiting for /dev/disk/ %d...",i);
}
update_splash("wait_media");
get_medias(CDROM, &medias, &medias_models);

1
disk.c
View File

@ -352,6 +352,7 @@ enum return_type disk_prepare(void)
enum return_type results;
int timeout = 32;
int period = 5;
update_splash("prepare");
fprintf(stderr,"%c[1A",27);
for(i=0; i<timeout; i++) {

1
init.c
View File

@ -423,7 +423,6 @@ int main(int argc, char **argv)
fatal("mkdir\n");
klogpid = doklog();
spawn_hook(init_top);
if (mkdirs_dev(".udev", ".udev/db", NULL) < 0)

View File

@ -555,7 +555,6 @@ static char * interface_select(void)
static int current_iface_auto=0;
interfaces = get_net_devices();
ptr = interfaces;
while (ptr && *ptr) {
count++;
@ -581,7 +580,7 @@ static char * interface_select(void)
if (IS_AUTOMATIC) {
if (streq(get_auto_value("interface"), "")) {
if (interfaces[current_iface_auto]!=NULL)
if (interfaces[current_iface_auto] != NULL)
return interfaces[current_iface_auto++];
else
unset_param(MODE_AUTOMATIC); /* we are in a fallback mode */
@ -615,13 +614,13 @@ static enum return_type intf_select_and_up(void)
enum return_type results;
char * iface = NULL;
if (already_done) return RETURN_OK;
if (already_done)
return RETURN_OK;
if ((iface = interface_select()) == NULL)
return RETURN_BACK;
for (i = 0; i < num_interfaces ; i++)
for (i = 0; i < num_interfaces; i++)
if (!strcmp(intf[i].device, iface))
sel_intf = &(intf[i]);