Add __dead2 to functions that we know they are going to exit.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2010-09-20 13:23:43 +00:00
parent 6baf7a243a
commit e43e02f1a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212899
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -519,7 +519,7 @@ requnpack(struct hast_resource *res, struct hio *hio)
return (hio->hio_error);
}
static void
static __dead2 void
secondary_exit(int exitcode, const char *fmt, ...)
{
va_list ap;