From nobody Mon Dec 20 21:26:29 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0D4B3190680A; Mon, 20 Dec 2021 21:26:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JHt1x5YNhz3HGj; Mon, 20 Dec 2021 21:26:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9FA781D753; Mon, 20 Dec 2021 21:26:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BKLQTBr031565; Mon, 20 Dec 2021 21:26:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BKLQTYR031564; Mon, 20 Dec 2021 21:26:29 GMT (envelope-from git) Date: Mon, 20 Dec 2021 21:26:29 GMT Message-Id: <202112202126.1BKLQTYR031564@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Joerg Wunsch Subject: git: 1654b51455cd - main - usbconfig: actually set the exit code in usage() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: joerg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1654b51455cd1c890b08685551abafec88111606 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640035589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+RD6YXL7k1h7bIoBfYuvE7OJHcA9NVR+g/t2RaxUmMc=; b=jPfzTJME5FBumIEy+5YMqTu8xK6La2+DP1rWUhGF75UBL7vllKBuYI0UC2JvTjTo1Kg76w kzQtS5pnmj+uTmWQNltVFi3r4+wFdC6yn5dhrhJ45vMEAl9D1i+IQEpo6upFq5ybWogCkw kXjxCY/2MM3Ad9P6AAHjRyjU91JqQ1UhceRAoVDxclGuiKURM+NQTfwkq/WJj1D3vGSEZj qEvHlp2ELxoQv9xH1l/cdS8+W2cfLoWL0CVIDCiooeQ/vUBs1gDivdh2L5l5iZ8/Ivhh1g meXX5qGv5wrexPqTd3tUryJGATlfaB8vSaetpAND+l6NYUpbPp9aBNDnBCjQdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640035589; a=rsa-sha256; cv=none; b=ucoFag/rqxcUT5Y5GSBG1h4FLikKWKWx2XLB8W6Qr/QDal6FUztdR65CYtnMh+P6J4u5Hl G+/BsrmOtGhV6Zy5BVtvXbtxLEyHFd3x0hB9O1nMb4YgJpWbtTpR9e8JK4irxTyHuI/peU K54Oh5HlOMrF3xpRcO4HI8HVTQqTdLPniYDK6h/plzYzxoS+wyh08Q4hLoAt559L6A8ChY XVInyp+EjyyqjxxGjNRYf9RkQhs/vidGTpTde6J7pYaTBNheF8IVMGuWAwk2mg8cyDwfEL dSbygkOsjdrn+S8e+9IdbjraEl84MqvYJz3UF2/xGep8PRedv5zV5/sGosca8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by joerg: URL: https://cgit.FreeBSD.org/src/commit/?id=1654b51455cd1c890b08685551abafec88111606 commit 1654b51455cd1c890b08685551abafec88111606 Author: Joerg Wunsch AuthorDate: 2021-12-20 21:25:19 +0000 Commit: Joerg Wunsch CommitDate: 2021-12-20 21:25:19 +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 --- 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 " "\n" ); - exit(1); + exit(exitcode); } static void