1 :100644 100644 14f6ec8... 0000000... M dcdis.c
2 :100644 100644 d385f3b... 0000000... M dcdis.h
3 :100644 100644 bc1039d... 0000000... M decode.c
4 :100644 100644 48d01e0... 0000000... M decode.h
5 :100644 100644 6186d00... 0000000... M symtab.c
6 :100644 100644 4dc82cc... 0000000... M symtab.h
8 diff --git a/dcdis.c b/dcdis.c
9 index 14f6ec8..c4bafcb 100644
12 @@ -196,7 +196,7 @@ main(argc, argv)
14 fprintf(out, "H'%08x: ", my_pc);
16 - my_opcode = char2short(&file[i]);
17 + my_opcode = char2short((uint8_t*)&file[i]);
18 fprintf(out, "H'%04x ", my_opcode);
20 for (j = 0; j < (N_O_BITS/8); j++) {
21 diff --git a/dcdis.h b/dcdis.h
22 index d385f3b..200317c 100644
29 -#include <sys/types.h>
32 #define N_O_BITS 16 /* SH-4 instructions are 16-bit fixed width */
33 #define START_ADDRESS 0x8c010000
34 diff --git a/decode.c b/decode.c
35 index bc1039d..af16527 100644
44 extern int standard_disp;
46 @@ -50,7 +51,7 @@ decode(opcode, cur_PC, file, size, start_address)
47 reference = IMM*2+cur_PC+4;
48 reference2 = (reference&0x1fffffff)-(start_address&0x1fffffff);
49 if (reference2 >= 0 && reference2 <= size) {
50 - literal = char2short(&file[reference2]);
51 + literal = char2short((uint8_t*)&file[reference2]);
54 my_sym = (char *)symtab_lookup(reference);
55 @@ -80,7 +81,7 @@ decode(opcode, cur_PC, file, size, start_address)
56 reference = (IMM*4+(cur_PC&0xfffffffc)+4);
57 reference2 = (reference&0x1fffffff)-(start_address&0x1fffffff);
58 if (reference2 >= 0 && reference2 <= size) {
59 - literal = char2int(&file[reference2]);
60 + literal = char2int((uint8_t*)&file[reference2]);
63 my_sym = (char *)symtab_lookup(reference);
64 diff --git a/decode.h b/decode.h
65 index 48d01e0..639435f 100644
72 -#include <sys/types.h>
75 char *decode(uint16_t, uint32_t, char *, uint32_t, uint32_t);
77 diff --git a/symtab.c b/symtab.c
78 index 6186d00..e9c07fc 100644
81 @@ -86,8 +86,8 @@ symtab_read(fp)
85 - unsigned char buf[256];
86 - unsigned char buf2[256];
92 @@ -134,7 +134,7 @@ symtab_read(fp)
101 diff --git a/symtab.h b/symtab.h
102 index 4dc82cc..29a72d3 100644
109 -#include <sys/types.h>