Make the format string in ud_asmprintf a const char* since we pass it literals.

This commit is contained in:
Brendan Long
2013-06-05 08:48:05 -06:00
parent d341f5f201
commit eebcb0fff6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ ud_syn_rel_target(struct ud *u, struct ud_operand *opr)
* returns a negative number and truncates the output.
*/
int
ud_asmprintf(struct ud *u, char *fmt, ...)
ud_asmprintf(struct ud *u, const char *fmt, ...)
{
int ret;
int avail;
+2 -2
View File
@@ -36,10 +36,10 @@ extern const char* ud_reg_tab[];
uint64_t ud_syn_rel_target(struct ud*, struct ud_operand*);
#ifdef __GNUC__
int ud_asmprintf(struct ud *u, char *fmt, ...)
int ud_asmprintf(struct ud *u, const char *fmt, ...)
__attribute__ ((format (printf, 2, 3)));
#else
int ud_asmprintf(struct ud *u, char *fmt, ...);
int ud_asmprintf(struct ud *u, const char *fmt, ...);
#endif
void ud_syn_print_addr(struct ud *u, uint64_t addr);