diff options
Diffstat (limited to 'system/bin2iso/fixwarnings.diff')
-rw-r--r-- | system/bin2iso/fixwarnings.diff | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/system/bin2iso/fixwarnings.diff b/system/bin2iso/fixwarnings.diff new file mode 100644 index 0000000000..22b45ad2de --- /dev/null +++ b/system/bin2iso/fixwarnings.diff @@ -0,0 +1,27 @@ +diff --git a/src/linux_macos/bin2iso_v1.9b_linux.c b/src/linux_macos/bin2iso_v1.9b_linux.c +index aff7a72..a3044ad 100644 +--- a/src/linux_macos/bin2iso_v1.9b_linux.c ++++ b/src/linux_macos/bin2iso_v1.9b_linux.c +@@ -1,3 +1,4 @@ ++#include <unistd.h> + #include <stdio.h> + #include <string.h> + #include <stdlib.h> +@@ -111,7 +112,7 @@ typedef struct track + unsigned long size; /* track size in bytes */ + } tTrack; + +-buffered_fread(unsigned char *array, unsigned int size) { ++int buffered_fread(unsigned char *array, unsigned int size) { + unsigned int i; + + if(INBUF_WIDX == 0) { +@@ -125,7 +126,7 @@ buffered_fread(unsigned char *array, unsigned int size) { + array[i] = INBUF[INBUF_RIDX++]; + if((INBUF_RIDX == INBUF_WIDX) && (i < (size -1))) { + printf(" Warning: Premature EOF\n"); +- while(i++ < size) { array[i] == 0; }/* zero fill the rest */ ++ while(i++ < size) { array[i] = 0; }/* zero fill the rest */ + break; + } + } |