1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Mark the return value from strerror as a constant

* src/emacs.c (main): Mark the return from strerror as a constant,
since it shouldn't be changed (bug#43982).

* lib-src/movemail.c (pfatal_and_delete): Ditto.

Copyright-paperwork-exempt: yes
This commit is contained in:
Philipp Klaus Krause 2020-10-14 06:19:33 +02:00 committed by Lars Ingebrigtsen
parent f256687bd4
commit 14e00d95c4
2 changed files with 2 additions and 2 deletions

View file

@ -580,7 +580,7 @@ pfatal_with_name (char *name)
static void
pfatal_and_delete (char *name)
{
char *s = strerror (errno);
const char *s = strerror (errno);
unlink (name);
fatal ("%s for %s", s, name);
}