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:
parent
f256687bd4
commit
14e00d95c4
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue