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:
Dan Winship 2009-12-18 10:26:09 +01:00
parent 50741f2fb2
commit 28d91b5bb6
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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);
} }