aboutsummaryrefslogtreecommitdiff
path: root/gdb/findcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/findcmd.c')
-rw-r--r--gdb/findcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/findcmd.c b/gdb/findcmd.c
index 99cecb3..f3e2305 100644
--- a/gdb/findcmd.c
+++ b/gdb/findcmd.c
@@ -75,7 +75,7 @@ parse_find_args (char *args, ULONGEST *max_countp,
if (args == NULL)
error (_("Missing search parameters."));
- pattern_buf = xmalloc (pattern_buf_size);
+ pattern_buf = (gdb_byte *) xmalloc (pattern_buf_size);
pattern_buf_end = pattern_buf;
old_cleanups = make_cleanup (free_current_contents, &pattern_buf);
@@ -184,7 +184,7 @@ parse_find_args (char *args, ULONGEST *max_countp,
size_t current_offset = pattern_buf_end - pattern_buf;
pattern_buf_size = pattern_buf_size_need * 2;
- pattern_buf = xrealloc (pattern_buf, pattern_buf_size);
+ pattern_buf = (gdb_byte *) xrealloc (pattern_buf, pattern_buf_size);
pattern_buf_end = pattern_buf + current_offset;
}