This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 5 Dec 2002 16:20:31 -0700
- Subject: [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