Fix some more warnings

This commit is contained in:
pancake 2014-02-25 12:18:29 +01:00
parent 378e4d9d22
commit fcc9489c4f
4 changed files with 4 additions and 9 deletions

View File

@ -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;
}

View File

@ -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. */
/*

View File

@ -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) {

View File

@ -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 {