From: Tom Tromey Date: Thu, 31 Oct 2019 18:44:27 +0000 (-0600) Subject: Fix up safe_strerror constification X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b74816496d5113596dd80bd071ed9bcf152c96cd;p=binutils-gdb.git 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 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result. Change-Id: I36d5ced144d27b1a6734d9ab9a10a7b9f339ae88 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4231ac11fe6..500c4868c8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2019-11-01 Tom Tromey + + * gdbsupport/mingw-strerror.c (safe_strerror): Constify result. + 2019-11-01 Christian Biesinger * configure: Regenerate. diff --git a/gdb/gdbsupport/mingw-strerror.c b/gdb/gdbsupport/mingw-strerror.c index 6386330062c..893b7ca1779 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;