linux-record: Squash cases with identical handling
[deliverable/binutils-gdb.git] / gdb / findcmd.c
index 99cecb33348cd0a78d1c18fff894750c12e0fe6c..f5202e8199628e183fe78c037531d1d30ea769af 100644 (file)
@@ -1,6 +1,6 @@
 /* The find command.
 
-   Copyright (C) 2008-2015 Free Software Foundation, Inc.
+   Copyright (C) 2008-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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;
        }
 
This page took 0.025207 seconds and 4 git commands to generate.