X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fcommon%2Fhexfile.c;h=c9c7de32ce9e8de8e90a4225254b7d6ea595cc1f;hb=fbbb71d6d8aa93bccc87b17408a89432e4b8161c;hp=9fef6937ba8f7cc50b72b6b048eba98e35bc42c1;hpb=00deadc94f868a45431b58e34e707d235cf02b47;p=emu8051.git diff --git a/src/common/hexfile.c b/src/common/hexfile.c index 9fef693..c9c7de3 100644 --- a/src/common/hexfile.c +++ b/src/common/hexfile.c @@ -11,7 +11,6 @@ # include "config.h" #endif -#include #include #include #include @@ -35,11 +34,11 @@ void int2asciihex(int val, char *str, int width) { if (width == 1) - sprintf(str , "%.1X", (u_int8_t) val); + sprintf(str , "%.1X", (uint8_t) val); else if (width == 2) - sprintf(str , "%.2X", (u_int8_t) val); + sprintf(str , "%.2X", (uint8_t) val); else if (width == 4) - sprintf(str , "%.4X", (u_int16_t) val); + sprintf(str , "%.4X", (uint16_t) val); else sprintf(str , "Err"); }