From nobody Tue Jan 18 21:13:41 2022 X-Original-To: dev-commits-src-all@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 D859419648D9; Tue, 18 Jan 2022 21:13:42 +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 4JdhMp1Wfnz3pl3; Tue, 18 Jan 2022 21:13:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642540422; 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=JSvxWKNxs0mPsDz4ZqT9cBMkjX+cm+ZvU4oQxpS8nOU=; b=TeKr4H7sLk4JlYDHKj2M7u1JbIey8ny4OG1hT7vCWoId5SMzZXQoSqvqamWyy7huRFFgHL +pczN/wdjpEfSrSuG53VcoO0v6XfuiQoGttkMYzp1ac1MnaY3PmKSVbd1TnFmaTlDU3pBS Gh7a7owheYABb3vWLn2TY+q1JhZu9UdTkk1gEWFmuSusYsEadNjPnYow0LcEaZXH+nMwCR PHV/uJti4GUe27YUvQCqgkT8P2s2eAkn4Pj0mpLTaF6JEYOmzOliaTMawcVsjtNRSUVGVk qtK4+UJILRy8ncrXcy6M3zttOlqbmvdsXu120MB4YdCIWWDwvo7ZqtdkdI0hdQ== 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 8F4D6752; Tue, 18 Jan 2022 21:13:41 +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 20ILDfWb035305; Tue, 18 Jan 2022 21:13:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20ILDf6i035304; Tue, 18 Jan 2022 21:13:41 GMT (envelope-from git) Date: Tue, 18 Jan 2022 21:13:41 GMT Message-Id: <202201182113.20ILDf6i035304@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Joerg Wunsch Subject: git: 60889b2a6170 - stable/13 - usbconfig: actually set the exit code in usage() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 60889b2a6170d01cb1152087777eaa7937ba3723 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642540422; 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=JSvxWKNxs0mPsDz4ZqT9cBMkjX+cm+ZvU4oQxpS8nOU=; b=yTXTZOgwYJtyZeu34LvGgi1hWc16IoreYyOr9GJ/5VRqToGVkcH+ZS0ne5gwDKYJc7SjmT 2Q7vWjR2/hrV5hgu2LJuDRM48a0GhxUXSEo0noprsb3zw/fgUfCDjItUEDJxhCxsHedkFd nQ4CeI1dbG5lcVXRNQZHIEmdm8JN1zwt926X9OGF/cOys8kT5uJwqRHSd4iXVRPGWjbcN2 Ohh85H9aST1wc6c1m8qXkwh8CsVWiOi6xyWzNGl5+jLBiEx6dHNqMIhUbnmenOlF/l1eRE nOV94N8SuJu7r5rY9Bf7Srhj/X3mZrXe9pwBH90DS+ZRJ7VScqKfwJqLcn0KKg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642540422; a=rsa-sha256; cv=none; b=hz4q7BtO/8eOLqfxzJHm1P+AvlNq2iPbj2mBPDwd6Sw6KYYnWHGhgVt9wqKKZouR0GmzaJ vleaeAm/H8jni1G1Qhb3JhGftf0l12dP086P+NFPK74RWSftWYK+NLG+oNucWhETIJg0Zd cnOU98Rr054K+KYvjYhhXqfaNv9aOPJl1MtjyD3ddWaDzCMM4VRBQ5Q7raSirIYHzl+kL3 4ZSu2EokbWaiKeN5TbEtFT4ldaL4IF+Qk4M0OVSIYkFNPcWiLe+vX+yhx9ZZH3ZBOxHzfh 4LIG6wRh9hhnbore9e4qmWxuZP/+1gkFQDGxdGywOlmM53Zrrm9sLC0lCo+c3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by joerg: URL: https://cgit.FreeBSD.org/src/commit/?id=60889b2a6170d01cb1152087777eaa7937ba3723 commit 60889b2a6170d01cb1152087777eaa7937ba3723 Author: Joerg Wunsch AuthorDate: 2021-12-20 21:25:19 +0000 Commit: Joerg Wunsch 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 " "\n" ); - exit(1); + exit(exitcode); } static void