]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/obj-som.c
Add more const type qualifiers to GAS sources.
[thirdparty/binutils-gdb.git] / gas / config / obj-som.c
index 953c3a70282b0252bb9701abaa9bcf173c95f371..c0b2b41b2a9c112216c233ea300afec0d9730e81 100644 (file)
@@ -210,7 +210,8 @@ obj_som_init_stab_section (segT seg)
   segT saved_seg = now_seg;
   segT space;
   subsegT saved_subseg = now_subseg;
-  char *p, *file;
+  char *p;
+ const char * file;
   unsigned int stroff;
 
   /* Make the space which will contain the debug subspaces.  */
@@ -241,7 +242,7 @@ obj_som_init_stab_section (segT seg)
      the call to get_stab_string_offset.  */
   p = frag_more (12);
   memset (p, 0, 12);
-  as_where (&file, (unsigned int *) NULL);
+  file = as_where ((unsigned int *) NULL);
   stroff = get_stab_string_offset (file, "$GDB_STRINGS$");
   know (stroff == 1);
   md_number_to_chars (p, stroff, 4);