summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-21 16:32:48 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-21 16:32:48 +0000
commit2d23898e17a312b0bce9cd8a8907022180e37a44 (patch)
treec23b09a94576f7b985abeb06875c1bfaab1b90ec /daemon
parent91fcf748ea86a85685af4bee5fb269285e3e91ca (diff)
Avoid using g_shell_parse_argv
Diffstat (limited to 'daemon')
-rw-r--r--daemon/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/service.c b/daemon/service.c
index f76829b4..855ecfb7 100644
--- a/daemon/service.c
+++ b/daemon/service.c
@@ -173,8 +173,7 @@ static DBusHandlerResult service_start(DBusConnection *conn,
{
DBusMessage *reply;
GPid pid;
- char **argv;
- int argc;
+ char *argv[2];
debug("Starting service");
@@ -194,7 +193,8 @@ static DBusHandlerResult service_start(DBusConnection *conn,
dbus_message_append_args(reply, DBUS_TYPE_INVALID);
- g_shell_parse_argv(SERVICEDIR "bluetoothd-service-echo", &argc, &argv, NULL);
+ argv[0] = SERVICEDIR "bluetoothd-service-echo";
+ argv[1] = NULL;
g_spawn_async(NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &pid, NULL);