diff -Nur -x '*.orig' -x '*~' amideco-0.31e/src/amideco.h amideco-0.31e.new/src/amideco.h
--- amideco-0.31e/src/amideco.h 2009-12-23 15:27:01.000000000 -0500
+++ amideco-0.31e.new/src/amideco.h 2009-12-23 15:28:01.000000000 -0500
@@ -11,6 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#if defined(LINUX) || defined(__LINUX__) || defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
#include <memory.h>
@@ -20,9 +21,9 @@
#include <conio.h>
#endif
-typedef unsigned char byte;
-typedef unsigned short word;
-typedef unsigned long dword;
+typedef uint8_t byte;
+typedef uint16_t word;
+typedef uint32_t dword;
#define Xtract 0x10
#define List 0x01
diff -Nur -x '*.orig' -x '*~' amideco-0.31e/src/amifunc.c amideco-0.31e.new/src/amifunc.c
--- amideco-0.31e/src/amifunc.c 2009-12-23 15:27:01.000000000 -0500
+++ amideco-0.31e.new/src/amifunc.c 2009-12-23 15:28:01.000000000 -0500
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#if defined(LINUX) || defined(__LINUX__) || defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
#include <memory.h>
@@ -18,9 +19,9 @@
#include <conio.h>
#endif
-typedef unsigned char byte;
-typedef unsigned short word;
-typedef unsigned long dword;
+typedef uint8_t byte;
+typedef uint16_t word;
+typedef uint32_t dword;
#define Xtract 0x10
#define List 0x01
@@ -244,7 +245,7 @@
"October",
"November",
"December"};
- byte Buf[20];
+ static byte Buf[20];
sprintf(Buf,"%2.2s",year);
if((atoi(Buf)>=0) && (atoi(Buf)<70)) sprintf(Buf,"%.2s %s %s%.2s",day,Months[atoi(mon)],"20",year);
@@ -334,7 +335,7 @@
case List:
-printf("\n %.2X %.2i (%17.17s) %5.5lX (%6.5lu) => %5.5lX (%6.5lu) %.2s %5.5lXh",
+printf("\n %.2X %.2i (%17.17s) %5.5X (%6.5u) => %5.5X (%6.5u) %.2s %5.5Xh",
part.PartID,
PartTotal,
GetModuleName(part.PartID),