]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
socket-activate: drop unused accept param for open_sockets()
authorMike Yuan <me@yhndnzj.com>
Tue, 29 Apr 2025 15:35:10 +0000 (17:35 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 1 May 2025 04:10:26 +0000 (13:10 +0900)
src/socket-activate/socket-activate.c

index e55f921c87c0b2d37b83b12fd3605a65bfe69bbd..336d6fa754fe13241c23205b979975aed95bb86c 100644 (file)
@@ -49,7 +49,7 @@ static int add_epoll(int epoll_fd, int fd) {
         return 0;
 }
 
-static int open_sockets(int *ret_epoll_fd, bool accept) {
+static int open_sockets(int *ret_epoll_fd) {
         _cleanup_close_ int epoll_fd = -EBADF;
         int n, r, count = 0;
 
@@ -463,7 +463,7 @@ static int run(int argc, char **argv) {
 
         assert(!strv_isempty(exec_argv));
 
-        n = open_sockets(&epoll_fd, arg_accept);
+        n = open_sockets(&epoll_fd);
         if (n < 0)
                 return n;
         if (n == 0)