mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 18:24:04 +02:00
gtestdbus: Fix non-const use of const variables
The argv array should be declared as const. https://bugzilla.gnome.org/show_bug.cgi?id=712148
This commit is contained in:
@@ -586,7 +586,7 @@ write_config_file (GTestDBus *self)
|
|||||||
static void
|
static void
|
||||||
start_daemon (GTestDBus *self)
|
start_daemon (GTestDBus *self)
|
||||||
{
|
{
|
||||||
gchar *argv[] = {"dbus-daemon", "--print-address", "--config-file=foo", NULL};
|
const gchar *argv[] = {"dbus-daemon", "--print-address", "--config-file=foo", NULL};
|
||||||
gchar *config_path;
|
gchar *config_path;
|
||||||
gchar *config_arg;
|
gchar *config_arg;
|
||||||
gint stdout_fd;
|
gint stdout_fd;
|
||||||
@@ -604,7 +604,7 @@ start_daemon (GTestDBus *self)
|
|||||||
|
|
||||||
/* Spawn dbus-daemon */
|
/* Spawn dbus-daemon */
|
||||||
g_spawn_async_with_pipes (NULL,
|
g_spawn_async_with_pipes (NULL,
|
||||||
argv,
|
(gchar **) argv,
|
||||||
NULL,
|
NULL,
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
/* We Need this to get the pid returned on win32 */
|
/* We Need this to get the pid returned on win32 */
|
||||||
|
Reference in New Issue
Block a user