diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-02-09 17:38:29 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-02-13 21:10:10 +0100 |
commit | 3b5d1a8f495d5b6bda72f9962516d5a1e273481b (patch) | |
tree | f0a64a13260e930148188db70d3e9dcf04ddd5ee /src/ipcpd | |
parent | b0102d9dc3cb8b543e4e079ce68f1e06970b1cbb (diff) | |
download | ouroboros-3b5d1a8f495d5b6bda72f9962516d5a1e273481b.tar.gz ouroboros-3b5d1a8f495d5b6bda72f9962516d5a1e273481b.zip |
lib: Fix prototypes missing 'void'
Found by Clang version 15.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/ipcp.c | 10 | ||||
-rw-r--r-- | src/ipcpd/shim-data.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 395e9b78..235c8eb4 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -808,7 +808,7 @@ int ipcp_init(int argc, return ret; } -int ipcp_start() +int ipcp_start(void) { sigset_t sigset; sigemptyset(&sigset); @@ -848,7 +848,7 @@ int ipcp_start() return -1; } -void ipcp_sigwait() +void ipcp_sigwait(void) { siginfo_t info; @@ -904,7 +904,7 @@ void ipcp_sigwait() } } -void ipcp_stop() +void ipcp_stop(void) { log_info("IPCP %d shutting down.", getpid()); @@ -914,7 +914,7 @@ void ipcp_stop() tpm_stop(ipcpi.tpm); } -void ipcp_fini() +void ipcp_fini(void) { tpm_destroy(ipcpi.tpm); @@ -951,7 +951,7 @@ void ipcp_set_state(enum ipcp_state state) pthread_mutex_unlock(&ipcpi.state_mtx); } -enum ipcp_state ipcp_get_state() +enum ipcp_state ipcp_get_state(void) { enum ipcp_state state; diff --git a/src/ipcpd/shim-data.c b/src/ipcpd/shim-data.c index a499b2d4..035d9ebb 100644 --- a/src/ipcpd/shim-data.c +++ b/src/ipcpd/shim-data.c @@ -139,7 +139,7 @@ static void dir_entry_destroy(struct dir_entry * entry) free(entry); } -struct shim_data * shim_data_create() +struct shim_data * shim_data_create(void) { struct shim_data * sd; |