summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2014-12-05 19:56:25 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2014-12-05 19:56:25 +0000
commit62b4a386d5452c7fc19d5a9722299f74294fc3e8 (patch)
treeb10c67d4d2aae90f7395e288cd81f37775cf8a7c /usr.sbin
parentbbfcf1e3bb119d7c1ef3f515788dfa2d517d95eb (diff)
declare lerr and lerrx __dead; unconfuses llvm scan-build
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/slowcgi/slowcgi.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.sbin/slowcgi/slowcgi.c b/usr.sbin/slowcgi/slowcgi.c
index 445cf864bf1..b6f8cbf1371 100644
--- a/usr.sbin/slowcgi/slowcgi.c
+++ b/usr.sbin/slowcgi/slowcgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: slowcgi.c,v 1.35 2014/09/19 21:28:32 florian Exp $ */
+/* $OpenBSD: slowcgi.c,v 1.36 2014/12/05 19:56:24 florian Exp $ */
/*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
* Copyright (c) 2013 Florian Obser <florian@openbsd.org>
@@ -191,8 +191,8 @@ void dump_fcgi_end_request_body(const char *,
void cleanup_request(struct request *);
struct loggers {
- void (*err)(int, const char *, ...);
- void (*errx)(int, const char *, ...);
+ __dead void (*err)(int, const char *, ...);
+ __dead void (*errx)(int, const char *, ...);
void (*warn)(const char *, ...);
void (*warnx)(const char *, ...);
void (*info)(const char *, ...);
@@ -208,13 +208,13 @@ const struct loggers conslogger = {
warnx /* debug */
};
-void syslog_err(int, const char *, ...);
-void syslog_errx(int, const char *, ...);
-void syslog_warn(const char *, ...);
-void syslog_warnx(const char *, ...);
-void syslog_info(const char *, ...);
-void syslog_debug(const char *, ...);
-void syslog_vstrerror(int, int, const char *, va_list);
+__dead void syslog_err(int, const char *, ...);
+__dead void syslog_errx(int, const char *, ...);
+void syslog_warn(const char *, ...);
+void syslog_warnx(const char *, ...);
+void syslog_info(const char *, ...);
+void syslog_debug(const char *, ...);
+void syslog_vstrerror(int, int, const char *, va_list);
const struct loggers syslogger = {
syslog_err,
@@ -1195,7 +1195,7 @@ syslog_vstrerror(int e, int priority, const char *fmt, va_list ap)
free(s);
}
-void
+__dead void
syslog_err(int ecode, const char *fmt, ...)
{
va_list ap;
@@ -1206,7 +1206,7 @@ syslog_err(int ecode, const char *fmt, ...)
exit(ecode);
}
-void
+__dead void
syslog_errx(int ecode, const char *fmt, ...)
{
va_list ap;