wok diff linld/stuff/src/TAZBOOT.CPP @ rev 21576

Update some websites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 19 13:14:32 2019 +0200 (2019-05-19)
parents 87b6697bb350
children 0e811092e7bb
line diff
     1.1 --- a/linld/stuff/src/TAZBOOT.CPP	Sat May 18 13:29:32 2019 +0200
     1.2 +++ b/linld/stuff/src/TAZBOOT.CPP	Sun May 19 13:14:32 2019 +0200
     1.3 @@ -91,7 +91,7 @@
     1.4  			break;
     1.5  		}
     1.6  	} while (isoopen("isolinux") >= 0);		// Knoppix
     1.7 -	for (c = 0, x->curdirsize = 0xFFFF; isoreaddir() == 0;) {
     1.8 +	for (c = 0, x->curdirsize = 0xFFFF; isoreaddir() != -1;) {
     1.9  		if (strstr(x->filename, ".gz"))
    1.10  			strcpy(fallback, x->filename);
    1.11  		if (strhead(x->filename, "rootfs") 
    1.12 @@ -194,8 +194,8 @@
    1.13  			skip_alloc++;
    1.14  			goto next;
    1.15  		}
    1.16 -		if (argstr(s,"kernel/image|initrd|bootfrom/iso",&kernel_name) == 0);
    1.17 -		else if (argnum(s,"root|vga|mem/-e|-b",&root_dev) == 0);
    1.18 +		if (argstr(s,"kernel/image|initrd|bootfrom/iso",&kernel_name) != -1);
    1.19 +		else if (argnum(s,"root|vga|mem/-e|-b",&root_dev) != -1);
    1.20  		else if(i == 1 && fileexist(s) != -1) {
    1.21  			kernel_name = s;
    1.22  		}