diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2023-09-01 00:21:43 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2023-09-01 00:21:43 +0200 |
commit | adead13062527394ffc8923b0cb88b2b4fc58733 (patch) | |
tree | 09108bc4e505897c16f1ad87a3b683d065c35dee | |
parent | 1206661f8d4c6203288a1ed9e219dd5fe6ba5b83 (diff) |
Add void prototype
-rw-r--r-- | jaildaemon.c | 4 |
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 ); | |||
58 | static int add_task_to_kqueue( int kq, daemon_task * task_in ); | 58 | static int add_task_to_kqueue( int kq, daemon_task * task_in ); |
59 | static pid_t fork_and_jail( int jid, uid_t uid, gid_t gid, char * proctitle ); | 59 | static pid_t fork_and_jail( int jid, uid_t uid, gid_t gid, char * proctitle ); |
60 | static void fork_and_execve( int kq, daemon_task * task ); | 60 | static void fork_and_execve( int kq, daemon_task * task ); |
61 | static int fork_fork_slave( ); | 61 | static int fork_fork_slave( void ); |
62 | static void exerr( char * message, ... ); | 62 | static void exerr( char * message, ... ); |
63 | static void usage( char * command ); | 63 | static void usage( char * command ); |
64 | 64 | ||
@@ -147,7 +147,7 @@ static void fork_slave( int master_fd ) { | |||
147 | } | 147 | } |
148 | } | 148 | } |
149 | 149 | ||
150 | static int fork_fork_slave( ) { | 150 | static 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) |