mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-29 21:33:30 +02:00
Add GError to g_socket_address_to_native
This is nice for some callers so they can report an error. It is also required to support opional address types like abstract paths for unix domain sockets.
This commit is contained in:
@@ -697,7 +697,7 @@ _g_resolver_address_to_sockaddr (GInetAddress *address,
|
||||
GSocketAddress *sockaddr;
|
||||
|
||||
sockaddr = g_inet_socket_address_new (address, 0);
|
||||
g_socket_address_to_native (sockaddr, (struct sockaddr *)sa, sizeof (*sa));
|
||||
g_socket_address_to_native (sockaddr, (struct sockaddr *)sa, sizeof (*sa), NULL);
|
||||
*sa_len = g_socket_address_get_native_size (sockaddr);
|
||||
g_object_unref (sockaddr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user