summaryrefslogtreecommitdiff
path: root/sbin/dump/itime.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-26 16:35:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-26 16:35:22 +0000
commit0e078284c228e4e0347a385ebeb7d9c7ff51ca5b (patch)
tree6483a3a95bad324adbd937ee8bd32d9ff6924dfa /sbin/dump/itime.c
parent849dc8da17a4b089f646b5d4941314d0ec3c6e73 (diff)
ansi and protos
Diffstat (limited to 'sbin/dump/itime.c')
-rw-r--r--sbin/dump/itime.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/sbin/dump/itime.c b/sbin/dump/itime.c
index b19c28ffd8c..e19246dd919 100644
--- a/sbin/dump/itime.c
+++ b/sbin/dump/itime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: itime.c,v 1.9 2003/06/02 20:06:14 millert Exp $ */
+/* $OpenBSD: itime.c,v 1.10 2003/06/26 16:35:21 deraadt Exp $ */
/* $NetBSD: itime.c,v 1.4 1997/04/15 01:09:50 lukem Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: itime.c,v 1.9 2003/06/02 20:06:14 millert Exp $";
+static char rcsid[] = "$OpenBSD: itime.c,v 1.10 2003/06/26 16:35:21 deraadt Exp $";
#endif
#endif /* not lint */
@@ -73,7 +73,7 @@ static int makedumpdate(struct dumpdates *, char *);
static void readdumptimes(FILE *);
void
-initdumptimes()
+initdumptimes(void)
{
FILE *df;
@@ -105,8 +105,7 @@ initdumptimes()
}
static void
-readdumptimes(df)
- FILE *df;
+readdumptimes(FILE *df)
{
int i;
struct dumptime *dtwalk;
@@ -133,7 +132,7 @@ readdumptimes(df)
}
void
-getdumptime()
+getdumptime(void)
{
struct dumpdates *ddp;
int i;
@@ -165,7 +164,7 @@ getdumptime()
}
void
-putdumptime()
+putdumptime(void)
{
FILE *df;
struct dumpdates *dtwalk;
@@ -222,9 +221,7 @@ putdumptime()
}
static void
-dumprecout(file, what)
- FILE *file;
- struct dumpdates *what;
+dumprecout(FILE *file, struct dumpdates *what)
{
if (fprintf(file, DUMPOUTFMT,
@@ -237,9 +234,7 @@ dumprecout(file, what)
int recno;
static int
-getrecord(df, ddatep)
- FILE *df;
- struct dumpdates *ddatep;
+getrecord(FILE *df, struct dumpdates *ddatep)
{
char tbuf[BUFSIZ];
@@ -259,9 +254,7 @@ getrecord(df, ddatep)
}
static int
-makedumpdate(ddp, tbuf)
- struct dumpdates *ddp;
- char *tbuf;
+makedumpdate(struct dumpdates *ddp, char *tbuf)
{
char un_buf[BUFSIZ], *str;
struct tm then;