fixed control_fifo() to return a correct status
authorRobert Manea <gotmor@gmail.com>
Fri, 15 May 2009 16:23:20 +0000 (18:23 +0200)
committerRobert Manea <gotmor@gmail.com>
Fri, 15 May 2009 16:23:20 +0000 (18:23 +0200)
uzbl.c
uzbl.h

diff --git a/uzbl.c b/uzbl.c
index 7c9187d..f44db2e 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -995,14 +995,14 @@ build_stream_name(int type, const gchar* dir) {
     return str;
 }
 
-static void
+static gboolean
 control_fifo(GIOChannel *gio, GIOCondition condition) {
     printf("triggered\n");
     gchar *ctl_line;
     GIOStatus ret;
     GError *err = NULL;
 
-    if (condition & G_IO_HUP)
+    if (condition & G_IO_HUP) 
         g_error ("Fifo: Read end of pipe died!\n");
 
     if(!gio)
@@ -1015,7 +1015,7 @@ control_fifo(GIOChannel *gio, GIOCondition condition) {
     parse_cmd_line(ctl_line);
     g_free(ctl_line);
 
-    return;
+    return TRUE;
 }
 
 static gchar*
diff --git a/uzbl.h b/uzbl.h
index b5e73e9..30c7601 100644 (file)
--- a/uzbl.h
+++ b/uzbl.h
@@ -264,7 +264,7 @@ var_is(const char *x, const char *y);
 static gchar*
 set_useragent(gchar *val);
 
-static void
+static gboolean
 control_fifo(GIOChannel *gio, GIOCondition condition);
 
 static gchar*