mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 21:29:49 +00:00
Fix w32 build
This commit is contained in:
parent
366173bc95
commit
3ee51a2d02
@ -1469,7 +1469,7 @@ static int cmd_print(void *data, const char *input) {
|
||||
memset (buf, 0, malen);
|
||||
switch (input[1]) {
|
||||
case 'd':
|
||||
if (r_base64_decode (buf, core->block, len))
|
||||
if (r_base64_decode (buf, (const char *)core->block, len))
|
||||
r_cons_printf ("%s\n", buf);
|
||||
else eprintf ("r_base64_decode: invalid stream\n");
|
||||
break;
|
||||
|
@ -54,8 +54,8 @@ static int cmd_write(void *data, const char *input) {
|
||||
input++;
|
||||
len = *input ? r_num_math (core->num, input) : 0;
|
||||
if (len > 0){
|
||||
ut64 cur_off = core->offset;
|
||||
cmd_suc = r_core_extend_at (core, addr, len);
|
||||
//ut64 cur_off = core->offset;
|
||||
//cmd_suc = r_core_extend_at (core, addr, len);
|
||||
//cmd_suc = r_core_seek (core, cur_off, 1);
|
||||
core->offset = addr;
|
||||
r_core_block_read (core, 0);
|
||||
@ -89,7 +89,7 @@ static int cmd_write(void *data, const char *input) {
|
||||
bytes = len > 1? malloc (len+1) : NULL;
|
||||
len = bytes ? r_hex_str2bin (input, bytes) : 0;
|
||||
if (len > 0) {
|
||||
ut64 cur_off = core->offset;
|
||||
//ut64 cur_off = core->offset;
|
||||
cmd_suc = r_core_extend_at (core, addr, len);
|
||||
if (cmd_suc) {
|
||||
r_core_write_at (core, addr, bytes, len);
|
||||
|
@ -263,7 +263,7 @@ R_API int r_core_extend_at(RCore *core, ut64 addr, int size) {
|
||||
return (ret==-1)? R_FALSE: R_TRUE;
|
||||
}
|
||||
|
||||
R_API int r_core_shift_block(RCore *core, ut64 addr, ut64 b_size, int64_t dist) {
|
||||
R_API int r_core_shift_block(RCore *core, ut64 addr, ut64 b_size, st64 dist) {
|
||||
// bstart - block start, fstart file start
|
||||
ut64 fend = 0, fstart = 0, bstart = 0, file_sz = 0, cur_offset = core->offset;
|
||||
ut8 * shift_buf = NULL;
|
||||
|
@ -200,7 +200,7 @@ R_API int r_core_seek_archbits (RCore *core, ut64 addr);
|
||||
R_API int r_core_block_read(RCore *core, int next);
|
||||
R_API int r_core_block_size(RCore *core, int bsize);
|
||||
R_API int r_core_read_at(RCore *core, ut64 addr, ut8 *buf, int size);
|
||||
R_API int r_core_shift_block(RCore *core, ut64 addr, ut64 b_size, int64_t dist);
|
||||
R_API int r_core_shift_block(RCore *core, ut64 addr, ut64 b_size, st64 dist);
|
||||
R_API int r_core_visual(RCore *core, const char *input);
|
||||
R_API int r_core_visual_cmd(RCore *core, int ch);
|
||||
R_API void r_core_visual_seek_animation (RCore *core, ut64 addr);
|
||||
|
Loading…
Reference in New Issue
Block a user