eject: Fix wrong return value

Remove the unnecessary return(1) from function usage(), so that eject -h
can return the right value.

Signed-off-by: Zhangle Yang <zhangle.yang@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Jackie Huang
2014-04-22 04:24:41 -04:00
committed by Martin Jansa
parent 2726a6c88d
commit 13237318a5
2 changed files with 15 additions and 1 deletions
@@ -0,0 +1,12 @@
Upstream-Status: Inappropriate [the upstream is no longer active]
--- eject/eject.c.orig 2013-09-11 18:08:36.000000000 +0800
+++ eject/eject.c 2013-09-11 18:09:05.000000000 +0800
@@ -207,7 +207,6 @@
"If omitted, name defaults to `%s'.\n"
"By default tries -r, -s, -f, and -q in order until success.\n"),
DEFAULTDEVICE);
- exit(1);
}
+3 -1
View File
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
inherit autotools gettext update-alternatives
SRC_URI = "http://sources.openembedded.org/${BP}.tar.gz"
SRC_URI = "http://sources.openembedded.org/${BP}.tar.gz \
file://eject-2.1.5-error-return.patch \
"
SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55"