summaryrefslogtreecommitdiff
path: root/sbin/dump
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 /sbin/dump
parentcc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff)
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/dumprmt.c4
-rw-r--r--sbin/dump/itime.c6
-rw-r--r--sbin/dump/optr.c46
-rw-r--r--sbin/dump/tape.c8
-rw-r--r--sbin/dump/traverse.c6
5 files changed, 10 insertions, 60 deletions
diff --git a/sbin/dump/dumprmt.c b/sbin/dump/dumprmt.c
index dc0e1a854c1..d6a28e32bb5 100644
--- a/sbin/dump/dumprmt.c
+++ b/sbin/dump/dumprmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dumprmt.c,v 1.16 2002/02/16 21:27:33 millert Exp $ */
+/* $OpenBSD: dumprmt.c,v 1.17 2002/02/19 19:39:38 millert Exp $ */
/* $NetBSD: dumprmt.c,v 1.17 1997/06/05 16:10:47 mrg Exp $ */
/*-
@@ -67,11 +67,9 @@ static char rcsid[] = "$NetBSD: dumprmt.c,v 1.10 1996/03/15 22:39:26 scottr Exp
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#endif
#include "pathnames.h"
#include "dump.h"
diff --git a/sbin/dump/itime.c b/sbin/dump/itime.c
index 8662b4a3265..a078fce5260 100644
--- a/sbin/dump/itime.c
+++ b/sbin/dump/itime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: itime.c,v 1.7 2002/02/16 21:27:33 millert Exp $ */
+/* $OpenBSD: itime.c,v 1.8 2002/02/19 19:39:38 millert Exp $ */
/* $NetBSD: itime.c,v 1.4 1997/04/15 01:09:50 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: itime.c,v 1.7 2002/02/16 21:27:33 millert Exp $";
+static char rcsid[] = "$OpenBSD: itime.c,v 1.8 2002/02/19 19:39:38 millert Exp $";
#endif
#endif /* not lint */
@@ -60,11 +60,9 @@ static char rcsid[] = "$OpenBSD: itime.c,v 1.7 2002/02/16 21:27:33 millert Exp $
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#endif
#include "dump.h"
diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c
index 54c242dfa90..1324ea8f829 100644
--- a/sbin/dump/optr.c
+++ b/sbin/dump/optr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: optr.c,v 1.20 2002/02/16 21:27:33 millert Exp $ */
+/* $OpenBSD: optr.c,v 1.21 2002/02/19 19:39:38 millert Exp $ */
/* $NetBSD: optr.c,v 1.11 1997/05/27 08:34:36 mrg Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
#else
-static char rcsid[] = "$OpenBSD: optr.c,v 1.20 2002/02/16 21:27:33 millert Exp $";
+static char rcsid[] = "$OpenBSD: optr.c,v 1.21 2002/02/19 19:39:38 millert Exp $";
#endif
#endif /* not lint */
@@ -51,19 +51,12 @@ static char rcsid[] = "$OpenBSD: optr.c,v 1.20 2002/02/16 21:27:33 millert Exp $
#include <grp.h>
#include <signal.h>
#include <stdio.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
-#endif
#include <tzfile.h>
-#ifdef __STDC__
#include <unistd.h>
-#endif
#include <utmp.h>
-#ifndef __STDC__
-#include <varargs.h>
-#endif
#include "dump.h"
#include "pathnames.h"
@@ -234,13 +227,7 @@ timeest()
}
void
-#ifdef __STDC__
msg(const char *fmt, ...)
-#else
-msg(fmt, va_alist)
- char *fmt;
- va_dcl
-#endif
{
va_list ap;
@@ -248,51 +235,28 @@ msg(fmt, va_alist)
#ifdef TDEBUG
(void) fprintf(stderr, "pid=%d ", getpid());
#endif
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
(void) vfprintf(stderr, fmt, ap);
va_end(ap);
(void) fflush(stdout);
(void) fflush(stderr);
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
(void) vsnprintf(lastmsg, sizeof(lastmsg), fmt, ap);
va_end(ap);
}
void
-#ifdef __STDC__
msgtail(const char *fmt, ...)
-#else
-msgtail(fmt, va_alist)
- char *fmt;
- va_dcl
-#endif
{
va_list ap;
-#ifdef __STDC__
+
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
(void) vfprintf(stderr, fmt, ap);
va_end(ap);
}
void
-#ifdef __STDC__
quit(const char *fmt, ...)
-#else
-quit(fmt, va_alist)
- char *fmt;
- va_dcl
-#endif
{
va_list ap;
@@ -300,11 +264,7 @@ quit(fmt, va_alist)
#ifdef TDEBUG
(void) fprintf(stderr, "pid=%d ", getpid());
#endif
-#ifdef __STDC__
va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
(void) vfprintf(stderr, fmt, ap);
va_end(ap);
(void) fflush(stdout);
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c
index 762f39c010c..bc380b06c35 100644
--- a/sbin/dump/tape.c
+++ b/sbin/dump/tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tape.c,v 1.14 2002/02/17 19:42:27 millert Exp $ */
+/* $OpenBSD: tape.c,v 1.15 2002/02/19 19:39:38 millert Exp $ */
/* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tape.c 8.2 (Berkeley) 3/17/94";
#else
-static char rcsid[] = "$OpenBSD: tape.c,v 1.14 2002/02/17 19:42:27 millert Exp $";
+static char rcsid[] = "$OpenBSD: tape.c,v 1.15 2002/02/19 19:39:38 millert Exp $";
#endif
#endif /* not lint */
@@ -63,14 +63,10 @@ static char rcsid[] = "$OpenBSD: tape.c,v 1.14 2002/02/17 19:42:27 millert Exp $
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
-#else
-int write(), read();
-#endif
#include "dump.h"
#include "pathnames.h"
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 7f6274d7231..4f662dc22de 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: traverse.c,v 1.8 2002/02/16 21:27:33 millert Exp $ */
+/* $OpenBSD: traverse.c,v 1.9 2002/02/19 19:39:38 millert Exp $ */
/* $NetBSD: traverse.c,v 1.17 1997/06/05 11:13:27 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)traverse.c 8.2 (Berkeley) 9/23/93";
#else
-static char rcsid[] = "$OpenBSD: traverse.c,v 1.8 2002/02/16 21:27:33 millert Exp $";
+static char rcsid[] = "$OpenBSD: traverse.c,v 1.9 2002/02/19 19:39:38 millert Exp $";
#endif
#endif /* not lint */
@@ -63,10 +63,8 @@ static char rcsid[] = "$OpenBSD: traverse.c,v 1.8 2002/02/16 21:27:33 millert Ex
#include <errno.h>
#include <fts.h>
#include <stdio.h>
-#ifdef __STDC__
#include <string.h>
#include <unistd.h>
-#endif
#include "dump.h"