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

MFC after:	3 days
This commit is contained in:
pjd 2010-09-20 13:23:43 +00:00
parent 182b83a3dd
commit 999124921a
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 @@ end:
return (hio->hio_error);
}
static void
static __dead2 void
secondary_exit(int exitcode, const char *fmt, ...)
{
va_list ap;