Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration
@ 2002-12-05 15:25 Kevin Buettner
  2002-12-09 11:40 ` Kevin Buettner
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Buettner @ 2002-12-05 15:25 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration
  2002-12-05 15:25 [RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration Kevin Buettner
@ 2002-12-09 11:40 ` Kevin Buettner
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2002-12-09 11:40 UTC (permalink / raw)
  To: gdb-patches

On Dec 5,  4:20pm, Kevin Buettner wrote:

> 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.

Committed.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-09 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-05 15:25 [RFA] lin-lwp.c: Remove ``const'' from strsignal() declaration Kevin Buettner
2002-12-09 11:40 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox