mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix UnixWare build by not using "sa_len" as a variable name
https://bugzilla.gnome.org/show_bug.cgi?id=604875
This commit is contained in:
parent
50741f2fb2
commit
28d91b5bb6
@ -73,7 +73,7 @@ GList *_g_resolver_addresses_from_addrinfo (const char *hostname,
|
|||||||
|
|
||||||
void _g_resolver_address_to_sockaddr (GInetAddress *address,
|
void _g_resolver_address_to_sockaddr (GInetAddress *address,
|
||||||
struct sockaddr_storage *sa,
|
struct sockaddr_storage *sa,
|
||||||
gsize *sa_len);
|
gsize *len);
|
||||||
char *_g_resolver_name_from_nameinfo (GInetAddress *address,
|
char *_g_resolver_name_from_nameinfo (GInetAddress *address,
|
||||||
const gchar *name,
|
const gchar *name,
|
||||||
gint gni_retval,
|
gint gni_retval,
|
||||||
|
@ -759,13 +759,13 @@ _g_resolver_addresses_from_addrinfo (const char *hostname,
|
|||||||
void
|
void
|
||||||
_g_resolver_address_to_sockaddr (GInetAddress *address,
|
_g_resolver_address_to_sockaddr (GInetAddress *address,
|
||||||
struct sockaddr_storage *sa,
|
struct sockaddr_storage *sa,
|
||||||
gsize *sa_len)
|
gsize *len)
|
||||||
{
|
{
|
||||||
GSocketAddress *sockaddr;
|
GSocketAddress *sockaddr;
|
||||||
|
|
||||||
sockaddr = g_inet_socket_address_new (address, 0);
|
sockaddr = g_inet_socket_address_new (address, 0);
|
||||||
g_socket_address_to_native (sockaddr, (struct sockaddr *)sa, sizeof (*sa), NULL);
|
g_socket_address_to_native (sockaddr, (struct sockaddr *)sa, sizeof (*sa), NULL);
|
||||||
*sa_len = g_socket_address_get_native_size (sockaddr);
|
*len = g_socket_address_get_native_size (sockaddr);
|
||||||
g_object_unref (sockaddr);
|
g_object_unref (sockaddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user