summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-04-14 06:15:01 +0000
committerimp <imp@FreeBSD.org>2000-04-14 06:15:01 +0000
commit7fec3d2787608459e561d33aa2c5f4370c7eb11f (patch)
treedcaa461be797396514a3cad83c83a102b6255162 /sbin/swapon
parent212803777e16b9fe9d5c92e839ece868ac93b66b (diff)
downloadFreeBSD-src-7fec3d2787608459e561d33aa2c5f4370c7eb11f.zip
FreeBSD-src-7fec3d2787608459e561d33aa2c5f4370c7eb11f.tar.gz
Add include of errno.h where needed, remove extern int errno where not.
These commits were inspired by a similar commit to netbsd.
Diffstat (limited to 'sbin/swapon')
-rw-r--r--sbin/swapon/swapon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index 4d25da2..23b577a 100644
--- a/sbin/swapon/swapon.c
+++ b/sbin/swapon/swapon.c
@@ -97,8 +97,6 @@ main(int argc, char **argv)
int
add(char *name, int ignoreebusy)
{
- extern int errno;
-
if (swapon(name) == -1) {
switch (errno) {
case EBUSY:
OpenPOWER on IntegriCloud