[glib/wip/gsubprocess] GSubprocess: [rebase] Fix prototype of watch func



commit b5fb3ad25315136f1070951f471b41c1b791f03d
Author: Colin Walters <walters verbum org>
Date:   Fri May 25 12:41:55 2012 -0400

    GSubprocess: [rebase] Fix prototype of watch func

 gio/gsubprocess.c |    2 +-
 gio/gsubprocess.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c
index e3e4166..4e9cc1c 100644
--- a/gio/gsubprocess.c
+++ b/gio/gsubprocess.c
@@ -1598,7 +1598,7 @@ g_subprocess_add_watch (GSubprocess             *self,
 
 typedef struct {
   GSubprocess *self;
-  GSubprocessWatchFunc *callback;
+  GSubprocessWatchFunc callback;
   gpointer user_data;
   GDestroyNotify notify;
   gboolean have_wnowait;
diff --git a/gio/gsubprocess.h b/gio/gsubprocess.h
index c6672fe..50a18cd 100644
--- a/gio/gsubprocess.h
+++ b/gio/gsubprocess.h
@@ -189,8 +189,8 @@ gboolean         g_subprocess_run_sync (GSubprocess   *self,
 GLIB_AVAILABLE_IN_2_34
 GPid             g_subprocess_get_pid (GSubprocess     *self);
 
-typedef void  (GSubprocessWatchFunc)    (GSubprocess      *subprocess,
-					 gpointer          user_data);
+typedef void  (*GSubprocessWatchFunc)    (GSubprocess      *subprocess,
+					  gpointer          user_data);
 
 GLIB_AVAILABLE_IN_2_34
 GSource *        g_subprocess_add_watch (GSubprocess                  *self,



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