diff options
author | pjd <pjd@FreeBSD.org> | 2010-09-20 13:23:43 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-09-20 13:23:43 +0000 |
commit | 999124921a62d72f625cb9172911994f524abb1e (patch) | |
tree | e420234bb5cbaf39d32f2ab59774edccf059143c /sbin | |
parent | 182b83a3dd4f5b93e7e09aa49dfa2c3eb3b5f48f (diff) | |
download | FreeBSD-src-999124921a62d72f625cb9172911994f524abb1e.zip FreeBSD-src-999124921a62d72f625cb9172911994f524abb1e.tar.gz |
Add __dead2 to functions that we know they are going to exit.
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/primary.c | 4 | ||||
-rw-r--r-- | sbin/hastd/secondary.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 6f0995b..0b2402a 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -258,7 +258,7 @@ cleanup(struct hast_resource *res) errno = rerrno; } -static void +static __dead2 void primary_exit(int exitcode, const char *fmt, ...) { va_list ap; @@ -271,7 +271,7 @@ primary_exit(int exitcode, const char *fmt, ...) exit(exitcode); } -static void +static __dead2 void primary_exitx(int exitcode, const char *fmt, ...) { va_list ap; diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index fa898ec..6f56239 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -519,7 +519,7 @@ end: return (hio->hio_error); } -static void +static __dead2 void secondary_exit(int exitcode, const char *fmt, ...) { va_list ap; |