mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
Fixed build errors in makefsdata introduced with the last commit
This commit is contained in:
parent
5500a36b29
commit
b48106c662
@ -754,7 +754,7 @@ static int checkSsiByFilelist(const char* filename_listfile)
|
||||
fseek(f, 0, SEEK_SET);
|
||||
buf = (char*)malloc(fsize);
|
||||
if (!buf) {
|
||||
printf("failed to allocate ssi file buffer\n", errno);
|
||||
printf("failed to allocate ssi file buffer\n");
|
||||
fclose(f);
|
||||
return 0;
|
||||
}
|
||||
@ -762,7 +762,7 @@ static int checkSsiByFilelist(const char* filename_listfile)
|
||||
readcount = fread(buf, 1, fsize, f);
|
||||
fclose(f);
|
||||
if ((readcount > fsize) || !readcount) {
|
||||
printf("failed to read data from ssi file\n", errno);
|
||||
printf("failed to read data from ssi file\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -779,7 +779,7 @@ static int checkSsiByFilelist(const char* filename_listfile)
|
||||
/* allocate the line pointer array */
|
||||
lines = (char**)malloc(sizeof(char*) * num_lines);
|
||||
if (!lines) {
|
||||
printf("failed to allocate ssi line buffer\n", errno);
|
||||
printf("failed to allocate ssi line buffer\n");
|
||||
return 0;
|
||||
}
|
||||
memset(lines, 0, sizeof(char*) * num_lines);
|
||||
|
Loading…
Reference in New Issue
Block a user