docs: Description of return value of get_native_size

Specified that if the user passes an invalid address, the function returns -1.

closes #2377
This commit is contained in:
marklkram
2025-05-10 22:28:18 -04:00
parent fdd41f9b65
commit c0c0e212d9

View File

@@ -147,9 +147,8 @@ g_socket_address_init (GSocketAddress *address)
* g_socket_address_to_native().
*
* Returns: the size of the native struct sockaddr that
* @address represents, or `-1` if the passed
* @address is of type other than `AF_INET`
* or `AF_INET6`
* @address represents, or `-1` if @address
* is not valid
*
* Since: 2.22
*/