[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] branch main updated: Const qualify return of strerror
From: |
Daniel Llorens |
Subject: |
[Guile-commits] branch main updated: Const qualify return of strerror |
Date: |
Wed, 03 Nov 2021 06:59:44 -0400 |
This is an automated email from the git hooks/post-receive script.
lloda pushed a commit to branch main
in repository guile.
The following commit(s) were added to refs/heads/main by this push:
new ab9c0c9 Const qualify return of strerror
ab9c0c9 is described below
commit ab9c0c9ca787da60ac9b956fdbcf4c1fa68c3300
Author: Philipp Klaus Krause <pkk@spth.de>
AuthorDate: Wed Nov 3 11:54:51 2021 +0100
Const qualify return of strerror
Closes https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43987
---
libguile/posix.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libguile/posix.c b/libguile/posix.c
index 31c4ab1..3ab12b9 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -1299,7 +1299,7 @@ renumber_file_descriptor (int fd, int err)
{
/* At this point we are in the child process before exec. We
cannot safely raise an exception in this environment. */
- char *msg = strerror (errno);
+ const char *msg = strerror (errno);
fprintf (fdopen (err, "a"), "start_child: dup failed: %s\n", msg);
_exit (127); /* Use exit status 127, as with other exec errors. */
}
@@ -1383,7 +1383,7 @@ start_child (const char *exec_file, char **exec_argv,
/* The exec failed! There is nothing sensible to do. */
{
- char *msg = strerror (errno);
+ const char *msg = strerror (errno);
fprintf (fdopen (2, "a"), "In execvp of %s: %s\n",
exec_file, msg);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Guile-commits] branch main updated: Const qualify return of strerror,
Daniel Llorens <=