summaryrefslogtreecommitdiff
path: root/src/core/socket.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-03 16:41:36 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-06 09:41:02 +0200
commit79c7626d1f239e02152ad698298a1b5d0e9fbacf (patch)
tree8c44dacdd28f0ec358f5751c5a7733a9d72ebb6e /src/core/socket.h
parent6ec4ed645e37ba7dd5628747ea78ec1663599ab7 (diff)
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.
Diffstat (limited to 'src/core/socket.h')
-rw-r--r--src/core/socket.h2
1 files changed, 1 insertions, 1 deletions
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);