public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix up safe_strerror constification
@ 2019-11-01 16:40 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2019-11-01 16:40 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b74816496d5113596dd80bd071ed9bcf152c96cd

commit b74816496d5113596dd80bd071ed9bcf152c96cd
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu Oct 31 12:44:27 2019 -0600

    Fix up safe_strerror constification
    
    The earlier patch to constify safe_strerror missed a couple of spots,
    corrected here.
    
    gdb/ChangeLog
    2019-11-01  Tom Tromey  <tromey@adacore.com>
    
    	* gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
    
    Change-Id: I36d5ced144d27b1a6734d9ab9a10a7b9f339ae88

Diff:
---
 gdb/ChangeLog                   | 4 ++++
 gdb/gdbsupport/mingw-strerror.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4231ac1..500c486 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2019-11-01  Tom Tromey  <tromey@adacore.com>
+
+	* gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
+
 2019-11-01  Christian Biesinger  <cbiesinger@google.com>
 
 	* configure: Regenerate.
diff --git a/gdb/gdbsupport/mingw-strerror.c b/gdb/gdbsupport/mingw-strerror.c
index 6386330..893b7ca 100644
--- a/gdb/gdbsupport/mingw-strerror.c
+++ b/gdb/gdbsupport/mingw-strerror.c
@@ -28,7 +28,7 @@
    unfortunately this includes all socket-related error codes.
    This replacement tries to find a system-provided error message.  */
 
-char *
+const char *
 safe_strerror (int errnum)
 {
   static char *buffer;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-01 16:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01 16:40 [binutils-gdb] Fix up safe_strerror constification Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).