Commit 14e00d95 authored by Philipp Klaus Krause's avatar Philipp Klaus Krause Committed by Lars Ingebrigtsen

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
parent f256687b
......@@ -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);
......@@ -1273,7 +1273,7 @@ main (int argc, char **argv)
char *errstring = strerror (errno);
const char *errstring = strerror (errno);
fprintf (stderr, "%s: %s: %s\n", argv[0], term, errstring);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment