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]

[RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration


As noted in gdb@, I was seeing a conflict between the declarations of
strsignal() in lin-lwp.c and in <string.h>.  The patch below is one
way of fixing the problem.

Okay to commit?

	* lin-lwp.c (strsignal): Make extern declaration match that of glibc.

Index: lin-lwp.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-lwp.c,v
retrieving revision 1.38
diff -u -p -r1.38 lin-lwp.c
--- lin-lwp.c	4 Dec 2002 03:20:29 -0000	1.38
+++ lin-lwp.c	5 Dec 2002 23:15:40 -0000
@@ -34,7 +34,7 @@
 #include "gdbcmd.h"
 
 static int debug_lin_lwp;
-extern const char *strsignal (int sig);
+extern char *strsignal (int sig);
 
 /* On GNU/Linux there are no real LWP's.  The closest thing to LWP's
    are processes sharing the same VM space.  A multi-threaded process


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