From b48106c6623509b0a85b563f2dfb098aa54c1933 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 21 Nov 2017 20:08:40 +0100 Subject: [PATCH] Fixed build errors in makefsdata introduced with the last commit --- src/apps/httpd/makefsdata/makefsdata.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/httpd/makefsdata/makefsdata.c b/src/apps/httpd/makefsdata/makefsdata.c index 5b631591..0af3bbc2 100644 --- a/src/apps/httpd/makefsdata/makefsdata.c +++ b/src/apps/httpd/makefsdata/makefsdata.c @@ -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);