small beautification

This commit is contained in:
condret 2017-08-27 20:03:12 +00:00
parent c220c7466f
commit e2d096f411
3 changed files with 3 additions and 10 deletions

View File

@ -667,7 +667,7 @@ int main(int argc, char **argv) {
/* to store them just dump'm all to stdout */
rawstr = 2;
} else {
rawstr = true;
rawstr = 1;
}
} else {
set_action (R_BIN_REQ_STRINGS);

View File

@ -1057,13 +1057,6 @@ R_API int r_bin_load_io_at_offset_as_sz(RBin *bin, int fd, ut64 baseaddr,
return false;
}
ut64 seekaddr = is_debugger? baseaddr: loadaddr;
#if 0
io->va = 0;
if (!iob->read_at (io, seekaddr, buf_bytes, sz)) {
sz = 0;
}
io->va = 1;
#endif
if (!iob->fd_read_at (io, fd, seekaddr, buf_bytes, sz)) {
sz = 0LL;
}

View File

@ -495,10 +495,10 @@ static bool bin_strings(RCore *r, int mode, int va) {
return false;
}
if (!r_config_get_i (r->config, "bin.strings")) {
return 0;
return false;
}
if (!plugin) {
return 0;
return false;
}
if (plugin->info && plugin->name) {
if (strcmp (plugin->name, "any") == 0 && !rawstr) {