Add casts to memory allocation related calls
[deliverable/binutils-gdb.git] / gdb / bcache.c
index f3abc12a10e2351db126c4da253865ee707d71e1..6db56d2990cbd1cff1232931a3802d2e8f1c7aac 100644 (file)
@@ -265,7 +265,8 @@ bcache_full (const void *addr, int length, struct bcache *bcache, int *added)
   /* The user's string isn't in the list.  Insert it after *ps.  */
   {
     struct bstring *newobj
-      = obstack_alloc (&bcache->cache, BSTRING_SIZE (length));
+      = (struct bstring *) obstack_alloc (&bcache->cache,
+                                         BSTRING_SIZE (length));
 
     memcpy (&newobj->d.data, addr, length);
     newobj->length = length;
This page took 0.024504 seconds and 4 git commands to generate.