summaryrefslogtreecommitdiff
path: root/sbin/swapctl
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/swapctl
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/swapctl')
-rw-r--r--sbin/swapctl/swapctl.c18
-rw-r--r--sbin/swapctl/swapctl.h4
2 files changed, 11 insertions, 11 deletions
diff --git a/sbin/swapctl/swapctl.c b/sbin/swapctl/swapctl.c
index 7f065d7b78e..4e7d69fd6c0 100644
--- a/sbin/swapctl/swapctl.c
+++ b/sbin/swapctl/swapctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: swapctl.c,v 1.6 2001/06/04 14:59:50 mickey Exp $ */
+/* $OpenBSD: swapctl.c,v 1.7 2002/02/16 21:27:38 millert Exp $ */
/* $NetBSD: swapctl.c,v 1.9 1998/07/26 20:23:15 mycroft Exp $ */
/*
@@ -105,15 +105,15 @@ char *tflag; /* swap device type (blk or noblk) */
int pri; /* uses 0 as default pri */
-static void change_priority __P((char *));
-static void add_swap __P((char *));
-static void del_swap __P((char *));
- int main __P((int, char *[]));
-static void do_fstab __P((void));
-static void usage __P((void));
-static int swapon_command __P((int, char **));
+static void change_priority(char *);
+static void add_swap(char *);
+static void del_swap(char *);
+ int main(int, char *[]);
+static void do_fstab(void);
+static void usage(void);
+static int swapon_command(int, char **);
#if 0
-static void swapoff_command __P((int, char **));
+static void swapoff_command(int, char **);
#endif
extern char *__progname; /* from crt0.o */
diff --git a/sbin/swapctl/swapctl.h b/sbin/swapctl/swapctl.h
index 596d5989b60..2d294437e9b 100644
--- a/sbin/swapctl/swapctl.h
+++ b/sbin/swapctl/swapctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: swapctl.h,v 1.2 2000/02/26 04:06:23 hugh Exp $ */
+/* $OpenBSD: swapctl.h,v 1.3 2002/02/16 21:27:38 millert Exp $ */
/* $NetBSD: swapctl.h,v 1.2 1997/10/10 05:39:54 mrg Exp $ */
/*
@@ -30,4 +30,4 @@
*/
/* pri, kflag, pflag, tflag, dolong (1 for long, 0 for short) */
-void list_swap __P((int, int, int, int, int));
+void list_swap(int, int, int, int, int);