Fixed building issues after merge
[cascardo/gnio.git] / test / test-stuff.c
index b92b209..791748e 100644 (file)
@@ -11,9 +11,9 @@
 
 GMainLoop *loop;
 
-void print_address (GInetAddress *address, gpointer data);
+static void print_address (GInetAddress *address, gpointer data);
 
-void
+static void
 print_address (GInetAddress *address, gpointer data)
 {
        gchar *string = g_inet_address_to_string (G_INET_ADDRESS (address));
@@ -23,7 +23,7 @@ print_address (GInetAddress *address, gpointer data)
        g_free (string);
 }
 
-void
+static void
 resolve_callback (GObject *source, GAsyncResult *result, gpointer data)
 {
        GError *error = NULL;
@@ -72,6 +72,8 @@ int main (int argc, char *argv[])
 
        address = (GInetAddress *) g_inet4_address_from_string ("127.0.0.1");
 
+       g_printf ("is floating: %d\n", g_object_is_floating (address));
+
        g_printf ("%s:\n", g_inet_address_to_string (address));
 
        g_printf ("is_any: %d, is_linklocal: %d, is_loopback: %d\n", g_inet_address_is_any (address), g_inet_address_is_linklocal (address), g_inet_address_is_loopback (address));