]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/macrotab.c
Add some more casts (2/2)
[thirdparty/binutils-gdb.git] / gdb / macrotab.c
index 9245c7c1f96a03676e43075d8250364b96c6e2df..435b3f1b2be746b24513f305267a12591ac1e836 100644 (file)
@@ -130,7 +130,7 @@ macro_bcache (struct macro_table *t, const void *addr, int len)
 static const char *
 macro_bcache_str (struct macro_table *t, const char *s)
 {
-  return macro_bcache (t, s, strlen (s) + 1);
+  return (const char *) macro_bcache (t, s, strlen (s) + 1);
 }
 
 
@@ -575,7 +575,8 @@ new_macro_definition (struct macro_table *t,
         cached_argv[i] = macro_bcache_str (t, argv[i]);
 
       /* Now bcache the array of argument pointers itself.  */
-      d->argv = macro_bcache (t, cached_argv, cached_argv_size);
+      d->argv = ((const char * const *)
+                macro_bcache (t, cached_argv, cached_argv_size));
     }
 
   /* We don't bcache the entire definition structure because it's got