Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2022 21:13:41 GMT
From:      Joerg Wunsch <joerg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 60889b2a6170 - stable/13 - usbconfig: actually set the exit code in usage()
Message-ID:  <202201182113.20ILDf6i035304@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by joerg:

URL: https://cgit.FreeBSD.org/src/commit/?id=60889b2a6170d01cb1152087777eaa7937ba3723

commit 60889b2a6170d01cb1152087777eaa7937ba3723
Author:     Joerg Wunsch <joerg@FreeBSD.org>
AuthorDate: 2021-12-20 21:25:19 +0000
Commit:     Joerg Wunsch <joerg@FreeBSD.org>
CommitDate: 2022-01-18 21:12:48 +0000

    usbconfig: actually set the exit code in usage()
    
    Oversight in previous commit: usage() had been turned to accept
    an "exitcode" parameter, but it hasn't been used.
    
    MFC after:      2 weeks
    
    (cherry picked from commit 1654b51455cd1c890b08685551abafec88111606)
---
 usr.sbin/usbconfig/usbconfig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/usbconfig/usbconfig.c b/usr.sbin/usbconfig/usbconfig.c
index 49acbf68b33c..81112d957bbb 100644
--- a/usr.sbin/usbconfig/usbconfig.c
+++ b/usr.sbin/usbconfig/usbconfig.c
@@ -303,7 +303,7 @@ usage(int exitcode)
 	    "  list" "\n"
 	    "  do_request <bmReqTyp> <bReq> <wVal> <wIdx> <wLen> <data...>" "\n"
 	);
-	exit(1);
+	exit(exitcode);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201182113.20ILDf6i035304>