svn commit: r212899 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Sep 20 13:23:44 UTC 2010
Author: pjd
Date: Mon Sep 20 13:23:43 2010
New Revision: 212899
URL: http://svn.freebsd.org/changeset/base/212899
Log:
Add __dead2 to functions that we know they are going to exit.
MFC after: 3 days
Modified:
head/sbin/hastd/primary.c
head/sbin/hastd/secondary.c
Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c Mon Sep 20 12:23:10 2010 (r212898)
+++ head/sbin/hastd/primary.c Mon Sep 20 13:23:43 2010 (r212899)
@@ -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 *f
exit(exitcode);
}
-static void
+static __dead2 void
primary_exitx(int exitcode, const char *fmt, ...)
{
va_list ap;
Modified: head/sbin/hastd/secondary.c
==============================================================================
--- head/sbin/hastd/secondary.c Mon Sep 20 12:23:10 2010 (r212898)
+++ head/sbin/hastd/secondary.c Mon Sep 20 13:23:43 2010 (r212899)
@@ -519,7 +519,7 @@ end:
return (hio->hio_error);
}
-static void
+static __dead2 void
secondary_exit(int exitcode, const char *fmt, ...)
{
va_list ap;
More information about the svn-src-all
mailing list