[RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration
Kevin Buettner
kevinb@redhat.com
Thu Dec 5 15:25:00 GMT 2002
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
More information about the Gdb-patches
mailing list