diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-04-26 15:34:55 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-04-26 15:35:58 +0100 |
commit | 9365e212f8007412a9221d5240c82080ed3ede93 (patch) | |
tree | 0872656e8ce15e1ef9ef5531eda2a2ecb39f8acb /glib/gbacktrace.c | |
parent | 22cd18500dae1592d4695ce9d670fb7e846f24b0 (diff) | |
download | glib-9365e212f8007412a9221d5240c82080ed3ede93.tar.gz |
More const-correctness fixes
This continues one of the const-correctness fixes from the previous
commit (it needed some more transitive fixes), and reverts another of
them, since it was over-zealous.
This fixes CI failure: https://gitlab.gnome.org/GNOME/glib/-/jobs/27125.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody
Diffstat (limited to 'glib/gbacktrace.c')
-rw-r--r-- | glib/gbacktrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/gbacktrace.c b/glib/gbacktrace.c index 5300c6838..d29f4fad6 100644 --- a/glib/gbacktrace.c +++ b/glib/gbacktrace.c @@ -81,7 +81,7 @@ #ifndef G_OS_WIN32 -static void stack_trace (char **args); +static void stack_trace (const char * const *args); #endif /* People want to hit this from their debugger... */ @@ -269,7 +269,7 @@ stack_trace_sigchld (int signum) } static void -stack_trace (char **args) +stack_trace (const char * const *args) { pid_t pid; int in_fd[2]; @@ -301,7 +301,7 @@ stack_trace (char **args) close (1); dup (out_fd[1]); /* set the stdout to the out pipe */ close (2); dup (out_fd[1]); /* set the stderr to the out pipe */ - execvp (args[0], args); /* exec gdb */ + execvp (args[0], (char **) args); /* exec gdb */ /* Print failure to original stderr */ close (2); dup (old_err); |