[Untested] fixed the compiler/linter options and fixed the corresponding code.

the code fixes have not been tested. some are trivial orthers might be a bit worrying.
This commit is contained in:
Marc
2022-10-05 13:55:04 +02:00
parent 561a2a90b8
commit 635b1adcaf
11 changed files with 40 additions and 35 deletions
+3 -3
View File
@@ -190,7 +190,7 @@ static int installAndUninstallMod(int argc, char ** argv, bool install) {
GList * mods = listFilesInFolder(modFolder);
GList * modsFirstPointer = mods;
for(int i = 0; i < modId; i++) {
for(unsigned long i = 0; i < modId; i++) {
mods = g_list_next(mods);
}
@@ -427,7 +427,7 @@ static int removeMod(int argc, char ** argv) {
GList * mods = listFilesInFolder(modFolder);
GList * modsFirstPointer = mods;
for(int i = 0; i < modId; i++) {
for(unsigned long i = 0; i < modId; i++) {
mods = g_list_next(mods);
}
@@ -469,7 +469,7 @@ static int fomod(int argc, char ** argv) {
GList * mods = listFilesInFolder(modFolder);
GList * modsFirstPointer = mods;
for(int i = 0; i < modId; i++) {
for(unsigned long i = 0; i < modId; i++) {
mods = g_list_next(mods);
}