Permalink
Browse files

Fixing warnings

  • Loading branch information...
David Mohr
David Mohr committed May 26, 2010
1 parent a4c6073 commit 897bef6e892bc45d643fe00a626b1642e81b6a42
Showing with 6 additions and 2 deletions.
  1. +4 −2 src/gchd-direct.c
  2. +2 −0 src/gchd-test.c
View
@@ -46,7 +46,7 @@ typedef struct {
static gchar * get_default_entry (Gchd * gchd, GError **error);
static gboolean set_default_entry (Gchd * gchd, gchar * entry, GError **error);
static int find (const char *name, const char *value);
-static void signal_set_done (gpointer data);
+static gboolean signal_set_done (gpointer data);
/* implementations */
@@ -156,7 +156,7 @@ set_default_entry (Gchd * gchd, gchar * entry, GError **error)
return TRUE;
}
-static void
+static gboolean
signal_set_done (gpointer data)
{
Gchd * gchd = (Gchd *) data;
@@ -166,6 +166,8 @@ signal_set_done (gpointer data)
/* this function is only called when setting the default
* succeeded, so we always signal TRUE here */
gchd->set_callback (gchd, TRUE, NULL, gchd->set_callback_data);
+
+ return FALSE;
}
static int
View
@@ -19,7 +19,9 @@ main (int argc, char **argv) {
gint n_entries;
GList * entries;
gchar *def_entry;
+#if 0
gboolean r;
+#endif
gchd = gchd_new ();

0 comments on commit 897bef6

Please sign in to comment.