summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2023-09-01 00:21:43 +0200
committerDirk Engling <erdgeist@erdgeist.org>2023-09-01 00:21:43 +0200
commitadead13062527394ffc8923b0cb88b2b4fc58733 (patch)
tree09108bc4e505897c16f1ad87a3b683d065c35dee
parent1206661f8d4c6203288a1ed9e219dd5fe6ba5b83 (diff)
Add void prototype
-rw-r--r--jaildaemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jaildaemon.c b/jaildaemon.c
index d9f673f..f50b343 100644
--- a/jaildaemon.c
+++ b/jaildaemon.c
@@ -58,7 +58,7 @@ static int copy_daemontask( daemon_task ** out, daemon_task * const in );
58static int add_task_to_kqueue( int kq, daemon_task * task_in ); 58static int add_task_to_kqueue( int kq, daemon_task * task_in );
59static pid_t fork_and_jail( int jid, uid_t uid, gid_t gid, char * proctitle ); 59static pid_t fork_and_jail( int jid, uid_t uid, gid_t gid, char * proctitle );
60static void fork_and_execve( int kq, daemon_task * task ); 60static void fork_and_execve( int kq, daemon_task * task );
61static int fork_fork_slave( ); 61static int fork_fork_slave( void );
62static void exerr( char * message, ... ); 62static void exerr( char * message, ... );
63static void usage( char * command ); 63static void usage( char * command );
64 64
@@ -147,7 +147,7 @@ static void fork_slave( int master_fd ) {
147 } 147 }
148} 148}
149 149
150static int fork_fork_slave( ) { 150static int fork_fork_slave( void ) {
151 int sockets[2]; 151 int sockets[2];
152 152
153 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) 153 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0)