diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-18 12:18:55 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-18 12:18:55 +0000 |
commit | f5a6eb5faa0459d6ec4ac9255c0f24d4dbe73583 (patch) | |
tree | 428a365d322abfad40dc53e4980b742de9cb24e3 | |
parent | 56cb260ed21561c2b84c1ca5dec8b25c738343c8 (diff) | |
download | cmogstored-f5a6eb5faa0459d6ec4ac9255c0f24d4dbe73583.tar.gz |
This fixes a missing prototype warning for cmogstored_exit() when checking exit.c with sparse.
-rw-r--r-- | cmogstored.c | 1 | ||||
-rw-r--r-- | cmogstored.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cmogstored.c b/cmogstored.c index 3c389bc..72400de 100644 --- a/cmogstored.c +++ b/cmogstored.c @@ -5,7 +5,6 @@ #include "cmogstored.h" #include "cfg.h" #include "nostd/setproctitle.h" -_Noreturn void cmogstored_exit(void); #define THIS "cmogstored" #define DESC "alternative mogstored implementation for MogileFS" static char summary[] = THIS " -- "DESC; diff --git a/cmogstored.h b/cmogstored.h index 73e1353..e72c071 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -540,6 +540,9 @@ unsigned mog_process_reaped(pid_t); void mog_upgrade_prepare(int argc, char *argv[], char *envp[]); pid_t mog_upgrade_spawn(void); +/* exit.c */ +_Noreturn void cmogstored_exit(void); + /* * We only deal with ipv4 and ipv6 addresses (and no human-friendly * hostnames/service names), so we can use smaller constants than the |