diff options
author | 2019-05-21 20:13:34 +0300 | |
---|---|---|
committer | 2019-05-21 20:13:34 +0300 | |
commit | 9e3e2a9d886f8191bccc69ccc356f683e4a0c561 (patch) | |
tree | ba435f258f625420be47af88fd844d008b09a234 /src | |
parent | 92dbb5804e65b9802cdb8e788e6a7503d31a89e8 (diff) | |
download | usurpation-9e3e2a9d886f8191bccc69ccc356f683e4a0c561.tar.gz usurpation-9e3e2a9d886f8191bccc69ccc356f683e4a0c561.tar.bz2 usurpation-9e3e2a9d886f8191bccc69ccc356f683e4a0c561.zip |
daemon: fixed some dumb mistakes
Signed-off-by: Paulius Ratkevičius <pauliuz95@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/proto_stdio.c | 2 | ||||
-rw-r--r-- | src/daemon/proto_stdio_private.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/proto_stdio.c b/src/daemon/proto_stdio.c index 35fd467..533dc76 100644 --- a/src/daemon/proto_stdio.c +++ b/src/daemon/proto_stdio.c @@ -61,6 +61,7 @@ static void *read_stdin(void *arg) } pthread_mutex_unlock(&state.in_m); } + return NULL; } @@ -77,6 +78,7 @@ static void *write_stdout(void *arg) } pthread_mutex_unlock(&state.out_m); } + return NULL; } diff --git a/src/daemon/proto_stdio_private.h b/src/daemon/proto_stdio_private.h index 1fa48d4..4b0ab6f 100644 --- a/src/daemon/proto_stdio_private.h +++ b/src/daemon/proto_stdio_private.h @@ -21,6 +21,8 @@ #ifndef USURPATION_PROTO_STDIO_PRIVATE_H #define USURPATION_PROTO_STDIO_PRIVATE_H +#include <string.h> +#include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <pthread.h> |