summaryrefslogtreecommitdiff
path: root/sbin/savecore/savecore.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /sbin/savecore/savecore.c
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'sbin/savecore/savecore.c')
-rw-r--r--sbin/savecore/savecore.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index 58ffca3daa2..b6014ab69d6 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: savecore.c,v 1.27 2001/11/05 07:39:17 mpech Exp $ */
+/* $OpenBSD: savecore.c,v 1.28 2002/02/16 21:27:37 millert Exp $ */
/* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94";
#else
-static char rcsid[] = "$OpenBSD: savecore.c,v 1.27 2001/11/05 07:39:17 mpech Exp $";
+static char rcsid[] = "$OpenBSD: savecore.c,v 1.28 2002/02/16 21:27:37 millert Exp $";
#endif
#endif /* not lint */
@@ -70,7 +70,7 @@ static char rcsid[] = "$OpenBSD: savecore.c,v 1.27 2001/11/05 07:39:17 mpech Exp
#include <kvm.h>
#include <vis.h>
-extern FILE *zopen __P((const char *fname, const char *mode, int bits));
+extern FILE *zopen(const char *fname, const char *mode, int bits);
#define KREAD(kd, addr, p)\
(kvm_read(kd, addr, (char *)(p), sizeof(*(p))) != sizeof(*(p)))
@@ -124,21 +124,21 @@ char vers[1024];
int clear, compress, force, verbose; /* flags */
-void check_kmem __P((void));
-int check_space __P((void));
-void clear_dump __P((void));
-int Create __P((char *, int));
-int dump_exists __P((void));
-char *find_dev __P((dev_t, int));
-int get_crashtime __P((void));
-void kmem_setup __P((void));
-void log __P((int, char *, ...));
-void Lseek __P((int, off_t, int));
-int Open __P((char *, int rw));
-char *rawname __P((char *s));
-void save_core __P((void));
-void usage __P((void));
-void Write __P((int, void *, int));
+void check_kmem(void);
+int check_space(void);
+void clear_dump(void);
+int Create(char *, int);
+int dump_exists(void);
+char *find_dev(dev_t, int);
+int get_crashtime(void);
+void kmem_setup(void);
+void log(int, char *, ...);
+void Lseek(int, off_t, int);
+int Open(char *, int rw);
+char *rawname(char *s);
+void save_core(void);
+void usage(void);
+void Write(int, void *, int);
int
main(argc, argv)