sendfirm: fix some minor issues

This patches some compile warnings and also makes it work correctly
with modern mingw64.

Change-Id: I8cd292bc989ae04bbaa1d7149d58d6d833a51c0a
This commit is contained in:
James Buren 2021-06-10 04:04:53 +00:00
parent d01f3192f2
commit ab0f23c4b1
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,7 @@ $(OUTPUT): sendfirm.c
gcc $(EXTRA_CFLAGS) $(CFLAGS) -o $(OUTPUT) sendfirm.c $(LIBS)
$(OUTPUT).exe: sendfirm_win.c
mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll
i686-w64-mingw32-gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll
clean:
rm -f $(OUTPUT)
rm -f $(OUTPUT) $(OUTPUT).exe

View file

@ -26,6 +26,7 @@
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
#include <sys/stat.h>