OSDN Git Service

attrib: Change GAttrib->stale type from gboolean
authorJefferson Delfes <jefferson.delfes@openbossa.org>
Wed, 17 Apr 2013 14:03:05 +0000 (10:03 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 24 Apr 2013 13:59:23 +0000 (16:59 +0300)
There is no reason to GAttrib->stale be gboolean.

attrib/gattrib.c

index 416d17b..f6881af 100644 (file)
@@ -27,6 +27,7 @@
 #endif
 
 #include <stdint.h>
+#include <stdbool.h>
 #include <string.h>
 #include <glib.h>
 
@@ -56,7 +57,7 @@ struct _GAttrib {
        guint next_cmd_id;
        GDestroyNotify destroy;
        gpointer destroy_user_data;
-       gboolean stale;
+       bool stale;
 };
 
 struct command {
@@ -279,7 +280,7 @@ static gboolean disconnect_timeout(gpointer data)
        }
 
 done:
-       attrib->stale = TRUE;
+       attrib->stale = true;
 
        g_attrib_unref(attrib);