summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-09-25 16:03:06 -0400
committerColin Walters <walters@verbum.org>2014-09-25 16:03:06 -0400
commitedf9cf5a7f0a44895cc3fc0918b427283d129b25 (patch)
tree81a84abac41ec9d1e0afb2569d2e14df3ebd63a9
parent1b19a989fb42b6396f1f0404991a098a4de3ecba (diff)
downloadostree-edf9cf5a7f0a44895cc3fc0918b427283d129b25.tar.gz
trivial-httpd: Further fixes for previous commit
-rw-r--r--src/ostree/ot-builtin-trivial-httpd.c7
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 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)