Files
Ben Siraphob f8c8a2af34 lambda-delta: fix build with modern GCC
- Add explicit int return type to main() in lpart.c
- Include <ctype.h> in decode_lmfl.c for tolower()
2025-11-14 03:37:49 -05:00

26 lines
534 B
Diff

diff --git a/src/lpart.c b/src/lpart.c
index 1234567..abcdefg 100644
--- a/src/lpart.c
+++ b/src/lpart.c
@@ -485,7 +485,7 @@ dump_part(char *partition)
return 0;
}
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
char *partition;
int ret;
diff --git a/tools/decode_lmfl.c b/tools/decode_lmfl.c
index 1234567..abcdefg 100644
--- a/tools/decode_lmfl.c
+++ b/tools/decode_lmfl.c
@@ -33,6 +33,7 @@
#include <string.h>
#include <errno.h>
#include <sys/stat.h>
+#include <ctype.h>
/* Globals */
FILE *ifile;