From fe24ad277ff99a5dfc7c968b8c48f8428b3abf4e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 13 Mar 2015 01:22:26 -0400 Subject: [PATCH] Fix compiler warnings --- uri.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uri.c b/uri.c index c665dcd..2e923ba 100644 --- a/uri.c +++ b/uri.c @@ -141,7 +141,7 @@ uri_host_inet(PG_FUNCTION_ARGS) parse_uri(s, &uri); if (uri.hostData.ip4) { - unsigned char *data = uri.hostData.ip4; + unsigned char *data = uri.hostData.ip4->data; char *tmp = palloc(16); snprintf(tmp, 16, "%u.%u.%u.%u", data[0], data[1], data[2], data[3]); uriFreeUriMembersA(&uri); @@ -149,7 +149,7 @@ uri_host_inet(PG_FUNCTION_ARGS) } else if (uri.hostData.ip6) { - unsigned char *data = uri.hostData.ip6; + unsigned char *data = uri.hostData.ip6->data; char *tmp = palloc(40); snprintf(tmp, 40, "%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x", data[0], data[1], data[2], data[3],