ud_insn_hex() returns a const char * but we modify the string for
printing. Rather than modifying (which is used to truncate to 16
chars), use a precision specifier instead.
This fixes:
udcli.c: In function ‘main’:
udcli.c:216:8: warning: assignment discards ‘const’ qualifier from
pointer target type [enabled by default]
Signed-off-by: Jamie Iles <jamie.iles@oracle.com>
The mode variable isn't actually used - the mode setting is handled by
ud_set_mode() instead. This fixes:
udcli.c:100:7: warning: variable ‘mode’ set but not used
[-Wunused-but-set-variable]
Signed-off-by: Jamie Iles <jamie.iles@oracle.com>