solving the rest of C90 issues in defining local variables in middle of code and comparing uncompatible types

This commit is contained in:
Ahmed Abdellah
2019-10-23 20:22:07 +01:00
parent 9a454e9724
commit 8cbe42fcb0
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -283,7 +283,7 @@ UTIL_createFileNamesTable_fromFileName(const char* inputFileName) {
UTIL_DISPLAY("[TRACE] migration done\n");
UTIL_DISPLAY("[TRACE] pos %zu inputFileSize %lu\n", pos, inputFileSize);
UTIL_DISPLAY("[TRACE] pos %zu inputFileSize %llu\n", pos, inputFileSize);
if(pos > inputFileSize){
UTIL_freeFileNamesTable(filesTable);
if(buf) free(buf);
@@ -330,7 +330,7 @@ UTIL_concatenateTwoTables(FileNamesTable* table1, FileNamesTable* table2) {
}
size_t newTotalTableSize = getTotalTableSize(table1) + getTotalTableSize(table2);
UTIL_DISPLAY("[TRACE] buf total size is: %d\n", newTotalTableSize);
UTIL_DISPLAY("[TRACE] buf total size is: %zu\n", newTotalTableSize);
char* buf = (char*) malloc(newTotalTableSize * sizeof(char));
if(!buf) {