[ostree] trivial-httpd: Further fixes for previous commit



commit edf9cf5a7f0a44895cc3fc0918b427283d129b25
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 25 16:03:06 2014 -0400

    trivial-httpd: Further fixes for previous commit

 src/ostree/ot-builtin-trivial-httpd.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/ostree/ot-builtin-trivial-httpd.c b/src/ostree/ot-builtin-trivial-httpd.c
index 83318c9..dc4f94e 100644
--- a/src/ostree/ot-builtin-trivial-httpd.c
+++ b/src/ostree/ot-builtin-trivial-httpd.c
@@ -371,11 +371,12 @@ ostree_builtin_trivial_httpd (int argc, char **argv, OstreeRepo *repo, GCancella
       addr = g_socket_get_local_address (listener, error);
       if (!addr)
         goto out;
-      g_assert (G_IS_INET_ADDRESS (addr));
+
+      g_assert (G_IS_INET_SOCKET_ADDRESS (addr));
       
-      g_strdup_printf ("%u\n", g_inet_socket_address_get_port ((GInetSocketAddress*)addr));
+      portstr = g_strdup_printf ("%u\n", g_inet_socket_address_get_port ((GInetSocketAddress*)addr));
 #else
-      g_strdup_printf ("%u\n", soup_server_get_port (server));
+      portstr = g_strdup_printf ("%u\n", soup_server_get_port (server));
 #endif
 
       if (g_strcmp0 ("-", opt_port_file) == 0)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]