X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fginetsocketaddress.c;h=5cf26f7feda97175183928759f8a4afc9d177618;hb=8df2cca08a5c06286303b39a34121c7e6925bf15;hp=6301e920d0fad9ab82c8d9bd5af302f8c959fba1;hpb=5575a3e9cb8ec3d0f0f373cb64e6fedc4c72c0f5;p=platform%2Fupstream%2Fglib.git diff --git a/gio/ginetsocketaddress.c b/gio/ginetsocketaddress.c index 6301e92..5cf26f7 100644 --- a/gio/ginetsocketaddress.c +++ b/gio/ginetsocketaddress.c @@ -361,7 +361,9 @@ g_inet_socket_address_new_from_string (const char *address, if (G_UNLIKELY (g_once_init_enter (&hints))) { + hints_struct.ai_family = AF_UNSPEC; hints_struct.ai_socktype = SOCK_STREAM; + hints_struct.ai_protocol = 0; hints_struct.ai_flags = AI_NUMERICHOST; g_once_init_leave (&hints, &hints_struct); } @@ -447,7 +449,7 @@ g_inet_socket_address_get_port (GInetSocketAddress *address) * Gets the `sin6_flowinfo` field from @address, * which must be an IPv6 address. * - * Return value: the flowinfo field + * Returns: the flowinfo field * * Since: 2.32 */ @@ -467,7 +469,7 @@ g_inet_socket_address_get_flowinfo (GInetSocketAddress *address) * Gets the `sin6_scope_id` field from @address, * which must be an IPv6 address. * - * Return value: the scope id field + * Returns: the scope id field * * Since: 2.32 */