net.c: Use proper socket type for __get_sock_name().