This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove unecessary casts in fbsd-proc.c


This removes some unecessary casts.  Committed.


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.

Index: fbsd-proc.c
===================================================================
RCS file: /cvs/src/src/gdb/fbsd-proc.c,v
retrieving revision 1.3
diff -u -p -r1.3 fbsd-proc.c
--- fbsd-proc.c 2 Aug 2002 20:51:21 -0000 1.3
+++ fbsd-proc.c 29 Oct 2003 22:45:18 -0000
@@ -129,19 +129,13 @@ fbsd_make_corefile_notes (bfd *obfd, int
   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
       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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]