socket-util: fix socket_get_family()

Function didn't actually return anything useful. Quite a shame.
This commit is contained in:
Lennart Poettering
2023-03-10 09:36:18 +01:00
parent 862481ece0
commit 5f64d2bf33
3 changed files with 17 additions and 21 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ struct timespec_large {
ssize_t recvmsg_safe(int sockfd, struct msghdr *msg, int flags);
int socket_get_family(int fd, int *ret);
int socket_get_family(int fd);
int socket_set_recvpktinfo(int fd, int af, bool b);
int socket_set_unicast_if(int fd, int af, int ifi);