diff --git a/uzbl.c b/uzbl.c index 1b8e8bcae..f3bb976d0 100644 --- a/uzbl.c +++ b/uzbl.c @@ -456,7 +456,7 @@ file_exists (const char * filename) { return (access(filename, F_OK) == 0); } -void +static void set_insert_mode(WebKitWebView *page, const gchar *param) { (void)page; (void)param; @@ -1164,15 +1164,11 @@ init_fifo(gchar *dir) { /* return dir or, on error, free dir and return NULL */ static gboolean control_stdin(GIOChannel *gio, GIOCondition condition) { + (void) condition; gchar *ctl_line = NULL; gsize ctl_line_len = 0; GIOStatus ret; - if (condition & G_IO_HUP) { - ret = g_io_channel_shutdown (gio, FALSE, NULL); - return FALSE; - } - ret = g_io_channel_read_line(gio, &ctl_line, &ctl_line_len, NULL, NULL); if ( (ret == G_IO_STATUS_ERROR) || (ret == G_IO_STATUS_EOF) ) return FALSE; diff --git a/uzbl.h b/uzbl.h index 49a275d35..539ab987d 100644 --- a/uzbl.h +++ b/uzbl.h @@ -257,7 +257,7 @@ new_action(const gchar *name, const gchar *param); static bool file_exists (const char * filename); -void +static void set_insert_mode(WebKitWebView *page, const gchar *param); static void