remove yank_off (ha)

This commit is contained in:
Adam Pridgen 2014-03-21 15:29:44 -05:00
parent 1d8912f995
commit 2e2e2eaac2
2 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@ R_API int r_core_yank_set (RCore *core, ut64 addr, const ut8 *buf, ut32 len) {
//free (core->yank_buf);
if (buf && len) {
r_buf_set_bytes (core->yank_buf, buf, len);
core->yank_off = addr;
core->yank_buff->base = addr;
return R_TRUE;
}
return R_FALSE;
@ -105,7 +105,7 @@ R_API int r_core_yank_dump (RCore *core, ut64 pos) {
if (pos >= core->yank_buf->length) {
eprintf ("Position exceeds buffer length.\n");
} else if (core->yank_buf->length > 0) {
r_cons_printf ("0x%08"PFMT64x" %d ", core->yank_off+pos,
r_cons_printf ("0x%08"PFMT64x" %d ", core->yank_buf->base+pos,
core->yank_buf->length-pos);
for (i=pos; i < core->yank_buf->length; i++)

View File

@ -101,7 +101,6 @@ typedef struct r_core_t {
int ffio;
int oobi_len;
RBuffer *yank_buf;
ut64 yank_off;
int tmpseek;
boolt vmode;
int interrupted; // XXX IS THIS DUPPED SOMEWHERE?