From b0398202ca733169c8ba7b770cefee7e3109390f Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Mon, 22 Dec 2008 14:30:05 +0000 Subject: mark log_fatal() and monitor_exit() as __dead, as they do not return. --- sbin/isakmpd/log.h | 4 ++-- sbin/isakmpd/monitor.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sbin') diff --git a/sbin/isakmpd/log.h b/sbin/isakmpd/log.h index 238399100c3..f01382edd25 100644 --- a/sbin/isakmpd/log.h +++ b/sbin/isakmpd/log.h @@ -1,4 +1,4 @@ -/* $OpenBSD: log.h,v 1.24 2005/05/26 05:35:55 moritz Exp $ */ +/* $OpenBSD: log.h,v 1.25 2008/12/22 14:30:04 hshoexer Exp $ */ /* $EOM: log.h,v 1.19 2000/03/30 14:27:23 ho Exp $ */ /* @@ -83,7 +83,7 @@ extern void log_error(const char *,...) extern void log_errorx(const char *,...) __attribute__((__format__(__printf__, 1, 2))); extern void log_fatal(const char *,...) - __attribute__((__format__(__printf__, 1, 2))); + __attribute__((__format__(__printf__, 1, 2))) __dead; extern void log_fatalx(const char *,...) __attribute__((__format__(__printf__, 1, 2))); extern void log_print(const char *,...) diff --git a/sbin/isakmpd/monitor.h b/sbin/isakmpd/monitor.h index 1590b48d390..659f69d4eeb 100644 --- a/sbin/isakmpd/monitor.h +++ b/sbin/isakmpd/monitor.h @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.h,v 1.18 2006/03/20 16:43:22 hshoexer Exp $ */ +/* $OpenBSD: monitor.h,v 1.19 2008/12/22 14:30:04 hshoexer Exp $ */ /* * Copyright (c) 2003 Håkan Olsson. All rights reserved. @@ -61,6 +61,6 @@ int monitor_readdir(char *, size_t); void monitor_init_done(void); int monitor_pf_key_v2_open(void); -void monitor_exit(int); +void monitor_exit(int) __dead; #endif /* _MONITOR_H_ */ -- cgit v1.2.3