summaryrefslogtreecommitdiff
path: root/libexec/mail.local
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-19 19:39:42 +0000
commit3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch)
tree1a8b19c5db03f8c989fc8228811837b182feb7a3 /libexec/mail.local
parentcc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff)
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'libexec/mail.local')
-rw-r--r--libexec/mail.local/locking.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/libexec/mail.local/locking.c b/libexec/mail.local/locking.c
index 0a5fe5d25ba..982b9b65577 100644
--- a/libexec/mail.local/locking.c
+++ b/libexec/mail.local/locking.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: locking.c,v 1.4 2002/02/17 23:16:09 millert Exp $ */
+/* $OpenBSD: locking.c,v 1.5 2002/02/19 19:39:38 millert Exp $ */
/*
* Copyright (c) 1996-1998 Theo de Raadt <deraadt@theos.com>
@@ -29,7 +29,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: locking.c,v 1.4 2002/02/17 23:16:09 millert Exp $";
+static char rcsid[] = "$OpenBSD: locking.c,v 1.5 2002/02/19 19:39:38 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -42,6 +42,7 @@ static char rcsid[] = "$OpenBSD: locking.c,v 1.4 2002/02/17 23:16:09 millert Exp
#include <errno.h>
#include <stdio.h>
#include <string.h>
+#include <stdarg.h>
#include "pathnames.h"
#include "mail.local.h"
@@ -160,28 +161,12 @@ baditem(path)
/* XXX if we fail to rename, another attempt will happen later */
}
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
void
-#ifdef __STDC__
merr(int isfatal, const char *fmt, ...)
-#else
-merr(isfatal, fmt)
- int isfatal;
- char *fmt;
- va_dcl
-#endif
{
va_list ap;
-#ifdef __STDC__
+
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
vsyslog(LOG_ERR, fmt, ap);
va_end(ap);
if (isfatal)