From b64547deb808046b8bac687242ab777c0bf0d73a Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 19 Feb 2008 09:41:06 +0000 Subject: Code cleanup from Kjartan: Removes unused code/variables. Uses right 2008-02-19 Alexander Larsson * lots of *.c files: Code cleanup from Kjartan: Removes unused code/variables. Uses right printf types Uses non-deprecated dbus calls. Removes spurious ; and , deleted extra checks for NULL for g_free svn path=/trunk/; revision=1302 --- daemon/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'daemon/main.c') diff --git a/daemon/main.c b/daemon/main.c index c48fbd74..ebfe9d19 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -97,19 +97,19 @@ main (int argc, char *argv[]) if (!no_fuse) { char *fuse_path; - char *argv[3]; + char *argv2[3]; fuse_path = g_build_filename (g_get_home_dir (), ".gvfs", NULL); if (!g_file_test (fuse_path, G_FILE_TEST_EXISTS)) g_mkdir (fuse_path, 0700); - argv[0] = LIBEXEC_DIR "/gvfs-fuse-daemon"; - argv[1] = fuse_path; - argv[2] = NULL; + argv2[0] = LIBEXEC_DIR "/gvfs-fuse-daemon"; + argv2[1] = fuse_path; + argv2[2] = NULL; g_spawn_async (NULL, - argv, + argv2, NULL, G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL, -- cgit v1.2.1