Commit 9365e212 authored by Philip Withnall's avatar Philip Withnall

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:
Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
Reviewed-by: nobody
parent 22cd1850
......@@ -153,7 +153,7 @@ typedef struct
gint monitor_created;
gint monitor_deleted;
gint monitor_changed;
const gchar *monitor_path;
gchar *monitor_path;
gint pos;
const gchar *data;
gchar *buffer;
......@@ -81,7 +81,7 @@
#ifndef G_OS_WIN32
static void stack_trace (char **args);
static void stack_trace (const char * const *args);
/* 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);
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