summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-07 10:12:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-07 10:12:08 +0000
commitafa1402e05f3d9301ccf548dfc59145241c6431b (patch)
tree062072e16cefb957b801e454dc8a7ec5d7f74d47 /bin
parent20dd1891a8f37674b1b0028ae36c4441a4e30c41 (diff)
use libc err(); ahd@kew.com
Diffstat (limited to 'bin')
-rw-r--r--bin/rmail/rmail.c36
1 files changed, 2 insertions, 34 deletions
diff --git a/bin/rmail/rmail.c b/bin/rmail/rmail.c
index 1b8d4e41a15..188193421e0 100644
--- a/bin/rmail/rmail.c
+++ b/bin/rmail/rmail.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rmail.c,v 1.5 1997/01/15 23:40:26 millert Exp $ */
+/* $OpenBSD: rmail.c,v 1.6 1997/04/07 10:12:07 deraadt Exp $ */
/* $NetBSD: rmail.c,v 1.8 1995/09/07 06:51:50 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95";
#else
-static char rcsid[] = "$OpenBSD: rmail.c,v 1.5 1997/01/15 23:40:26 millert Exp $";
+static char rcsid[] = "$OpenBSD: rmail.c,v 1.6 1997/04/07 10:12:07 deraadt Exp $";
#endif
#endif /* not lint */
@@ -68,9 +68,6 @@ static char rcsid[] = "$OpenBSD: rmail.c,v 1.5 1997/01/15 23:40:26 millert Exp $
*
* The output of rmail(8) compresses the <forward> lines into a single
* from path.
- *
- * The err(3) routine is included here deliberately to make this code
- * a bit more portable.
*/
#include <sys/param.h>
#include <sys/stat.h>
@@ -353,32 +350,3 @@ usage()
(void)fprintf(stderr, "usage: rmail [-T] [-D domain] user ...\n");
exit(EX_USAGE);
}
-
-#ifdef __STDC__
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
-
-void
-#ifdef __STDC__
-err(int eval, const char *fmt, ...)
-#else
-err(eval, fmt, va_alist)
- int eval;
- const char *fmt;
- va_dcl
-#endif
-{
- va_list ap;
-#if __STDC__
- va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
- (void)fprintf(stderr, "rmail: ");
- (void)vfprintf(stderr, fmt, ap);
- va_end(ap);
- (void)fprintf(stderr, "\n");
- exit(eval);
-}