summaryrefslogtreecommitdiffstats
path: root/sbin/dump/itime.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-03-20 22:49:40 +0000
committerimp <imp@FreeBSD.org>2002-03-20 22:49:40 +0000
commit69763106f0fd2b6bc5d1d93ba49d88ca38ea3c56 (patch)
tree07ff12515683ef4e24a284e242c874bd8b92d427 /sbin/dump/itime.c
parent2e58ec02712d7b8dffd130dacaad2ad7c24c592b (diff)
downloadFreeBSD-src-69763106f0fd2b6bc5d1d93ba49d88ca38ea3c56.zip
FreeBSD-src-69763106f0fd2b6bc5d1d93ba49d88ca38ea3c56.tar.gz
o remove __P
o Use ANSI function definitions o unifdef -D__STDC__
Diffstat (limited to 'sbin/dump/itime.c')
-rw-r--r--sbin/dump/itime.c37
1 files changed, 13 insertions, 24 deletions
diff --git a/sbin/dump/itime.c b/sbin/dump/itime.c
index dda11fa..b4c8f98 100644
--- a/sbin/dump/itime.c
+++ b/sbin/dump/itime.c
@@ -50,10 +50,8 @@ static const char rcsid[] =
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
-#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
-#endif
#include "dump.h"
@@ -66,13 +64,13 @@ struct dumpdates **ddatev = 0;
int nddates = 0;
int ddates_in = 0;
-static void dumprecout __P((FILE *, struct dumpdates *));
-static int getrecord __P((FILE *, struct dumpdates *));
-static int makedumpdate __P((struct dumpdates *, char *));
-static void readdumptimes __P((FILE *));
+static void dumprecout(FILE *, const struct dumpdates *);
+static int getrecord(FILE *, struct dumpdates *);
+static int makedumpdate(struct dumpdates *, const char *);
+static void readdumptimes(FILE *);
void
-initdumptimes()
+initdumptimes(void)
{
FILE *df;
@@ -104,8 +102,7 @@ initdumptimes()
}
static void
-readdumptimes(df)
- FILE *df;
+readdumptimes(FILE *df)
{
int i;
struct dumptime *dtwalk;
@@ -131,7 +128,7 @@ readdumptimes(df)
}
void
-getdumptime()
+getdumptime(void)
{
struct dumpdates *ddp;
int i;
@@ -163,7 +160,7 @@ getdumptime()
}
void
-putdumptime()
+putdumptime(void)
{
FILE *df;
struct dumpdates *dtwalk;
@@ -225,24 +222,18 @@ putdumptime()
}
static void
-dumprecout(file, what)
- FILE *file;
- struct dumpdates *what;
+dumprecout(FILE *file, const struct dumpdates *what)
{
- if (fprintf(file, DUMPOUTFMT,
- what->dd_name,
- what->dd_level,
- ctime(&what->dd_ddate)) < 0)
+ if (fprintf(file, DUMPOUTFMT, what->dd_name,
+ what->dd_level, ctime(&what->dd_ddate)) < 0)
quit("%s: %s\n", dumpdates, strerror(errno));
}
int recno;
static int
-getrecord(df, ddatep)
- FILE *df;
- struct dumpdates *ddatep;
+getrecord(FILE *df, struct dumpdates *ddatep)
{
char tbuf[BUFSIZ];
@@ -262,9 +253,7 @@ getrecord(df, ddatep)
}
static int
-makedumpdate(ddp, tbuf)
- struct dumpdates *ddp;
- char *tbuf;
+makedumpdate(struct dumpdates *ddp, const char *tbuf)
{
char un_buf[128];
OpenPOWER on IntegriCloud