aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbsupport
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-10-31 12:44:27 -0600
committerTom Tromey <tromey@adacore.com>2019-11-01 10:34:21 -0600
commitb74816496d5113596dd80bd071ed9bcf152c96cd (patch)
treeaafd101c6d77642913688878bc7c51eadb92d285 /gdb/gdbsupport
parente48f6033b01b6a5832e1efa48eda4e44193067a7 (diff)
downloadgdb-b74816496d5113596dd80bd071ed9bcf152c96cd.zip
gdb-b74816496d5113596dd80bd071ed9bcf152c96cd.tar.gz
gdb-b74816496d5113596dd80bd071ed9bcf152c96cd.tar.bz2
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
Diffstat (limited to 'gdb/gdbsupport')
-rw-r--r--gdb/gdbsupport/mingw-strerror.c2
1 files changed, 1 insertions, 1 deletions
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;