diff options
author | 2007-07-16 20:59:47 +0000 | |
---|---|---|
committer | 2007-07-16 20:59:47 +0000 | |
commit | f7b14ab5b177e910d40dd5f10c62da0f65657c29 (patch) | |
tree | 46c0205a5932efe27f472cb4d78ea3deaa249adc | |
parent | Replace bunches of nops with the ITLBNOPFIX macro, which generates fewer (diff) | |
download | wireguard-openbsd-f7b14ab5b177e910d40dd5f10c62da0f65657c29.tar.xz wireguard-openbsd-f7b14ab5b177e910d40dd5f10c62da0f65657c29.zip |
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)) |