wok-6.x diff syslinux/stuff/extra/md5sum.c @ rev 18675

syslinux/taziso: get custom config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 06 10:57:10 2015 +0100 (2015-12-06)
parents cc264cb074e2
children 8ac5467237fd
line diff
     1.1 --- a/syslinux/stuff/extra/md5sum.c	Sat Dec 05 18:24:53 2015 +0100
     1.2 +++ b/syslinux/stuff/extra/md5sum.c	Sun Dec 06 10:57:10 2015 +0100
     1.3 @@ -868,11 +868,11 @@
     1.4      return cpu_has_level(level) && ((cpuid_edx(level) >> (x & 31) & 1));
     1.5  }
     1.6  
     1.7 -static char *extfilename(char *filename, char *ext, int feature)
     1.8 +static const char *extfilename(const char *filename, char *ext, int feature)
     1.9  {
    1.10  #define NEWFILENAMESZ 256
    1.11  	static char newfilename[NEWFILENAMESZ+1];
    1.12 -	char *found = filename;
    1.13 +	const char *found = filename;
    1.14  	char *new = newfilename;
    1.15  	int fd;
    1.16  
    1.17 @@ -892,9 +892,9 @@
    1.18  	return found;
    1.19  }
    1.20  
    1.21 -static const char *bestextfilename(char *filename)
    1.22 +static const char *bestextfilename(const char *filename)
    1.23  {
    1.24 -	char *found;
    1.25 +	const char *found;
    1.26  
    1.27  	//found = extfilename(filename, "fpu",   X86_FEATURE_FPU);
    1.28  	//found = extfilename(filename, "686",   X86_FEATURE_CMOV);