Skip to content

Commit

Permalink
cstool: fix compilation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Oct 21, 2016
1 parent 32238dc commit 2897a80
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cstool/cstool_arm.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>

#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down
2 changes: 1 addition & 1 deletion cstool/cstool_arm64.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>

#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down
2 changes: 1 addition & 1 deletion cstool/cstool_mips.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>

#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down
5 changes: 3 additions & 2 deletions cstool/cstool_ppc.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* Capstone Disassembler Engine */
/* By Nguyen Anh Quynh <[email protected]>, 2013> */

#include <inttypes.h>
#include <stdio.h>

#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down Expand Up @@ -58,7 +59,7 @@ void print_insn_detail_ppc(csh handle, cs_insn *ins)
printf("\t\toperands[%u].type: REG = %s\n", i, cs_reg_name(handle, op->reg));
break;
case PPC_OP_IMM:
printf("\t\toperands[%u].type: IMM = 0x%x\n", i, op->imm);
printf("\t\toperands[%u].type: IMM = 0x%"PRIx64"\n", i, op->imm);
break;
case PPC_OP_MEM:
printf("\t\toperands[%u].type: MEM\n", i);
Expand Down
2 changes: 1 addition & 1 deletion cstool/cstool_sparc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <stdio.h>

#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down
2 changes: 1 addition & 1 deletion cstool/cstool_systemz.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <stdio.h>

#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down
2 changes: 1 addition & 1 deletion cstool/cstool_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>

#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down
2 changes: 1 addition & 1 deletion cstool/cstool_xcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* By Nguyen Anh Quynh <[email protected]>, 2013-2014 */

#include <stdio.h>
#include <capstone.h>
#include <capstone/capstone.h>

void print_string_hex(char *comment, unsigned char *str, size_t len);

Expand Down

0 comments on commit 2897a80

Please sign in to comment.