summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPhilipp Klaus Krause <pkk@spth.de>2020-10-14 06:19:33 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-10-14 06:19:33 +0200
commit14e00d95c4edb724bd12357e37dd443d785c1170 (patch)
treeda8b996668920e89e0e055b76718c6d698579e14 /lib-src
parentf256687bd4f0de8a09c1372ecf0bef917ff56277 (diff)
downloademacs-14e00d95c4edb724bd12357e37dd443d785c1170.tar.gz
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
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 8016a4e3736..4f9abc998a3 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -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);
}