diff options
author | Warner Losh <imp@FreeBSD.org> | 2000-04-14 06:15:01 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2000-04-14 06:15:01 +0000 |
commit | 37736675d1690425bccb9b2ba5f935f456888bc3 (patch) | |
tree | 70222ba0d15dac853c34cdd1714789c83b88e174 /sbin/swapon | |
parent | 71e93b396118c7f8e8fe8c25d84337307210b776 (diff) | |
download | src-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.c | 2 |
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: |