mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
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
This commit is contained in:
@ -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>
|
2019-11-01 Christian Biesinger <cbiesinger@google.com>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
unfortunately this includes all socket-related error codes.
|
unfortunately this includes all socket-related error codes.
|
||||||
This replacement tries to find a system-provided error message. */
|
This replacement tries to find a system-provided error message. */
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
safe_strerror (int errnum)
|
safe_strerror (int errnum)
|
||||||
{
|
{
|
||||||
static char *buffer;
|
static char *buffer;
|
||||||
|
Reference in New Issue
Block a user