mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-25 23:34:57 +00:00
Fix some more warnings
This commit is contained in:
parent
378e4d9d22
commit
fcc9489c4f
@ -55,7 +55,7 @@ static char *getstr(const char *src) {
|
||||
len--;
|
||||
if (ret[len]=='"') {
|
||||
ret[len] = 0;
|
||||
r_str_escape (ret);
|
||||
r_str_unescape (ret);
|
||||
return ret;
|
||||
} else eprintf ("Missing \"\n");
|
||||
}
|
||||
@ -76,8 +76,7 @@ static char *getstr(const char *src) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
ret = strdup (src);
|
||||
r_str_escape (ret);
|
||||
r_str_unescape ((ret = strdup (src)));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,6 @@ arc_sprintf (struct arcDisState *state, char *buf, const char *format, ...)
|
||||
char *bp;
|
||||
const char *p;
|
||||
int size, leading_zero, regMap[2];
|
||||
long auxNum;
|
||||
va_list ap;
|
||||
|
||||
va_start (ap, format);
|
||||
@ -256,7 +255,6 @@ arc_sprintf (struct arcDisState *state, char *buf, const char *format, ...)
|
||||
bp = buf;
|
||||
*bp = 0;
|
||||
p = format;
|
||||
auxNum = -1;
|
||||
regMap[0] = 0;
|
||||
regMap[1] = 0;
|
||||
|
||||
@ -1081,7 +1079,6 @@ ARCTangent_decodeInstr (bfd_vma address, disassemble_info *info)
|
||||
struct arcDisState s; /* ARC Disassembler state. */
|
||||
void *stream = info->stream; /* Output stream. */
|
||||
fprintf_ftype func = info->fprintf_func;
|
||||
int bytes;
|
||||
|
||||
memset (&s, 0, sizeof(struct arcDisState));
|
||||
|
||||
@ -1111,7 +1108,7 @@ ARCTangent_decodeInstr (bfd_vma address, disassemble_info *info)
|
||||
s.instName = _instName;
|
||||
|
||||
/* Disassemble. */
|
||||
bytes = dsmOneArcInst (address, (void *)& s);
|
||||
dsmOneArcInst (address, (void *)&s);
|
||||
|
||||
/* Display the disassembly instruction. */
|
||||
/*
|
||||
|
@ -672,7 +672,6 @@ static int arm_assemble(ArmOpcode *ao, const char *str) {
|
||||
a = getreg (ao->a[0]);
|
||||
b = getreg (ao->a[1]);
|
||||
if (b == -1) {
|
||||
ut16 numshift;
|
||||
int y, z;
|
||||
b = getnum (ao->a[1]);
|
||||
if (b>=0 && b<=0xff) {
|
||||
|
@ -526,7 +526,7 @@ static int cmd_write(void *data, const char *input) {
|
||||
case 's':
|
||||
{
|
||||
ut8 ulen;
|
||||
len = r_str_escape (str+1);
|
||||
len = r_str_unescape (str+1);
|
||||
if (len>255) {
|
||||
eprintf ("Too large\n");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user