Date: Mon, 20 Sep 2010 13:23:43 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r212899 - head/sbin/hastd Message-ID: <201009201323.o8KDNhFT053068@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009201323.o8KDNhFT053068>