diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2007-07-16 20:59:48 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2007-07-16 20:59:48 +0000 |
commit | 4acd9258f7846affa45597ab965ea2d8b8caee84 (patch) | |
tree | 65692324c67452070cb96fa56ec5e2150089e940 | |
parent | 44d36d2e001103a9cde5fb69293a540623cea4fe (diff) |
No need to include <sys/param.h> or <errno.h>. Also reorder includes
while here. Adapted from a diff by Igor Zinovik.
-rw-r--r-- | sbin/swapctl/swaplist.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/swapctl/swaplist.c b/sbin/swapctl/swaplist.c index 8447688c9d6..f57aed72e05 100644 --- a/sbin/swapctl/swaplist.c +++ b/sbin/swapctl/swaplist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: swaplist.c,v 1.4 2002/07/03 22:32:34 deraadt Exp $ */ +/* $OpenBSD: swaplist.c,v 1.5 2007/07/16 20:59:47 millert Exp $ */ /* $NetBSD: swaplist.c,v 1.8 1998/10/08 10:00:31 mrg Exp $ */ /* @@ -30,16 +30,14 @@ */ #include <sys/param.h> -#include <sys/stat.h> #include <sys/swap.h> -#include <unistd.h> #include <err.h> -#include <errno.h> +#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <inttypes.h> +#include <unistd.h> #define dbtoqb(b) dbtob((int64_t)(b)) |