* fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
authorMark Kettenis <kettenis@gnu.org>
Wed, 29 Oct 2003 22:47:37 +0000 (22:47 +0000)
committerMark Kettenis <kettenis@gnu.org>
Wed, 29 Oct 2003 22:47:37 +0000 (22:47 +0000)
gdb/ChangeLog
gdb/fbsd-proc.c

index 3c956067e5d7b45f0679b25be2d7e0b168378ac3..5a6469e84fc70e3e911341a517fa94d4468317a2 100644 (file)
@@ -1,5 +1,7 @@
 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
 
+       * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
+
        * corelow.c: Include "arch-utils.h", "regset.h" and
        "gdb_assert.h".
        (core_gdbarch): New variable.
index 6c47979650a93f7f7133c91e94c80fbd54320c57..2c31768250daf989cae095ea3831fad27c5155ea 100644 (file)
@@ -129,19 +129,13 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
   char *note_data = NULL;
 
   fill_gregset (&gregs, -1);
-  note_data = (char *) elfcore_write_prstatus (obfd,
-                                              note_data,
-                                              note_size,
-                                              ptid_get_pid (inferior_ptid),
-                                              stop_signal,
-                                              &gregs);
+  note_data = elfcore_write_prstatus (obfd, note_data, note_size,
+                                     ptid_get_pid (inferior_ptid),
+                                     stop_signal, &gregs);
 
   fill_fpregset (&fpregs, -1);
-  note_data = (char *) elfcore_write_prfpreg (obfd,
-                                             note_data,
-                                             note_size,
-                                             &fpregs,
-                                             sizeof (fpregs));
+  note_data = elfcore_write_prfpreg (obfd, note_data, note_size,
+                                    &fpregs, sizeof (fpregs));
 
   if (get_exec_file (0))
     {
@@ -151,11 +145,8 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
       if (get_inferior_args ())
        psargs = reconcat (psargs, psargs, " ", get_inferior_args (), NULL);
 
-      note_data = (char *) elfcore_write_prpsinfo (obfd,
-                                                  note_data,
-                                                  note_size,
-                                                  fname,
-                                                  psargs);
+      note_data = elfcore_write_prpsinfo (obfd, note_data, note_size,
+                                         fname, psargs);
     }
 
   make_cleanup (xfree, note_data);