aboutsummaryrefslogtreecommitdiff
path: root/sbin/swapon
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2000-04-14 06:15:01 +0000
committerWarner Losh <imp@FreeBSD.org>2000-04-14 06:15:01 +0000
commit37736675d1690425bccb9b2ba5f935f456888bc3 (patch)
tree70222ba0d15dac853c34cdd1714789c83b88e174 /sbin/swapon
parent71e93b396118c7f8e8fe8c25d84337307210b776 (diff)
downloadsrc-37736675d1690425bccb9b2ba5f935f456888bc3.tar.gz
src-37736675d1690425bccb9b2ba5f935f456888bc3.zip
Add include of errno.h where needed, remove extern int errno where not.
These commits were inspired by a similar commit to netbsd.
Notes
Notes: svn path=/head/; revision=59216
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 4d25da2cbdf6..23b577ac7643 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: