This is the mail archive of the gdb-patches@sourceware.org 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]

FYI: remove useless cast


I'm checking this in.

This removes a useless cast from macro_bcache_str.

Tom

2012-07-25  Tom Tromey  <tromey@redhat.com>

	* macrotab.c (macro_bcache_str): Remove cast.

Index: macrotab.c
===================================================================
RCS file: /cvs/src/src/gdb/macrotab.c,v
retrieving revision 1.27
diff -u -r1.27 macrotab.c
--- macrotab.c	16 May 2012 20:31:09 -0000	1.27
+++ macrotab.c	25 Jul 2012 15:31:07 -0000
@@ -128,7 +128,7 @@
 static const char *
 macro_bcache_str (struct macro_table *t, const char *s)
 {
-  return (char *) macro_bcache (t, s, strlen (s) + 1);
+  return macro_bcache (t, s, strlen (s) + 1);
 }
 
 


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