From edf9cf5a7f0a44895cc3fc0918b427283d129b25 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 25 Sep 2014 16:03:06 -0400 Subject: trivial-httpd: Further fixes for previous commit --- src/ostree/ot-builtin-trivial-httpd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ostree/ot-builtin-trivial-httpd.c b/src/ostree/ot-builtin-trivial-httpd.c index 83318c95..dc4f94e1 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) -- cgit v1.2.1