From 79c7626d1f239e02152ad698298a1b5d0e9fbacf Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 3 Oct 2015 16:41:36 +0200 Subject: core: simplify fd collection code, return number of fds as return value Let's simplify the fd collection code a bit, and return the number of collected fds as positive integer, the way it's customary in our usual code. --- src/core/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index d20dc8d81a..96091b0609 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -157,7 +157,7 @@ struct Socket { }; /* Called from the service code when collecting fds */ -int socket_collect_fds(Socket *s, int **fds, unsigned *n_fds); +int socket_collect_fds(Socket *s, int **fds); /* Called from the service code when a per-connection service ended */ void socket_connection_unref(Socket *s); -- cgit v1.2.3-54-g00ecf