diff options
Diffstat (limited to 'src/common/hexfile.c')
-rw-r--r-- | src/common/hexfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/hexfile.c b/src/common/hexfile.c index b32e671..c9c7de3 100644 --- a/src/common/hexfile.c +++ b/src/common/hexfile.c @@ -34,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"); } |