summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-14 02:18:18 +0000
committerdg <dg@FreeBSD.org>1995-05-14 02:18:18 +0000
commit9dfe5706e1872bbd87ac4f19cfd605a77187311f (patch)
treee998c7d5764e9fbfabf2107ef1a0034675547493 /sbin/swapon
parente8007e4e0947cf579dc772b46407cafe58b0e3c9 (diff)
downloadFreeBSD-src-9dfe5706e1872bbd87ac4f19cfd605a77187311f.zip
FreeBSD-src-9dfe5706e1872bbd87ac4f19cfd605a77187311f.tar.gz
Take out special error message for EINVAL...we really do want it to be
"invalid argument".
Diffstat (limited to 'sbin/swapon')
-rw-r--r--sbin/swapon/swapon.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index 4c3c3e5..042a853 100644
--- a/sbin/swapon/swapon.c
+++ b/sbin/swapon/swapon.c
@@ -96,10 +96,6 @@ add(char *name, int ignoreebusy)
if (swapon(name) == -1) {
switch (errno) {
- case EINVAL:
- fprintf(stderr, "swapon: %s: device not configured\n",
- name);
- break;
case EBUSY:
if (!ignoreebusy)
fprintf(stderr,
OpenPOWER on IntegriCloud