[tracker/extractor-remove-word-counting-review: 9/14] Allow pid pointer being NULL



commit 0e0c1ce73fd7fb6901703dd4818a397ad0cdd76d
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue May 11 14:00:54 2010 +0200

    Allow pid pointer being NULL

 src/libtracker-common/tracker-os-dependant-unix.c |    5 ++---
 src/libtracker-common/tracker-os-dependant-win.c  |    1 -
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-common/tracker-os-dependant-unix.c b/src/libtracker-common/tracker-os-dependant-unix.c
index 70dd389..746c613 100644
--- a/src/libtracker-common/tracker-os-dependant-unix.c
+++ b/src/libtracker-common/tracker-os-dependant-unix.c
@@ -90,8 +90,8 @@ tracker_spawn (gchar **argv,
 
 gboolean
 tracker_spawn_async_with_channels (const gchar **argv,
-                                   gint                  timeout,
-                                   GPid                 *pid,
+                                   gint          timeout,
+                                   GPid         *pid,
                                    GIOChannel  **stdin_channel,
                                    GIOChannel  **stdout_channel,
                                    GIOChannel  **stderr_channel)
@@ -103,7 +103,6 @@ tracker_spawn_async_with_channels (const gchar **argv,
 	g_return_val_if_fail (argv != NULL, FALSE);
 	g_return_val_if_fail (argv[0] != NULL, FALSE);
 	g_return_val_if_fail (timeout >= 0, FALSE);
-	g_return_val_if_fail (pid != NULL, FALSE);
 
 	result = g_spawn_async_with_pipes (NULL,
 	                                   (gchar **) argv,
diff --git a/src/libtracker-common/tracker-os-dependant-win.c b/src/libtracker-common/tracker-os-dependant-win.c
index 41a256b..a99184d 100644
--- a/src/libtracker-common/tracker-os-dependant-win.c
+++ b/src/libtracker-common/tracker-os-dependant-win.c
@@ -100,7 +100,6 @@ tracker_spawn_async_with_channels (const gchar **argv,
 	g_return_val_if_fail (argv != NULL, FALSE);
 	g_return_val_if_fail (argv[0] != NULL, FALSE);
 	g_return_val_if_fail (timeout > 0, FALSE);
-	g_return_val_if_fail (pid != NULL, FALSE);
 
 	result = g_spawn_async_with_pipes (NULL,
 	                                   (gchar **) argv,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]