From nobody Tue Jan 18 21:15:42 2022 X-Original-To: dev-commits-src-branches@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 BE41F1965677; Tue, 18 Jan 2022 21:15:43 +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 4JdhQ729mxz3qyt; Tue, 18 Jan 2022 21:15:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642540543; 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=QhuZXkAmxRPxLMkbImllRHpjZq6FxVJtMlNwtdeU7VQ=; b=jKyuMpFt6KV1ZDwVgp9fgvNu7BSw4k6hedYjiN9Ay6Da7f5/bDE8N9gjm4XdMgUVoZMwd7 WF6CjS5Bz6tjfH0o305zJmipFIer6HSQhCOahls5OQGls8VwxVGHQYBMqriQVJPzaniQUo mXqwQzqysTRSRLtP+Ynrsrdq/iCZcZra9bK6h0bZGM+dGTPGXTUDYj0kmYrq99rMFYepCq evv8/fK6yzhC9kC8S8BgxrkqpeMlPgiNL4sgqhTjJIcTMNGDMVRWeGSyxMwRpRFJ3zlSRl K896/UBFOor5b9anvntjZ5dNtTvMujouZvCQCyy5pu2UeehQQKJiWd+x1boOzg== 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 D06EC55C; Tue, 18 Jan 2022 21:15:42 +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 20ILFgO9035667; Tue, 18 Jan 2022 21:15:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20ILFgtp035666; Tue, 18 Jan 2022 21:15:42 GMT (envelope-from git) Date: Tue, 18 Jan 2022 21:15:42 GMT Message-Id: <202201182115.20ILFgtp035666@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: 1cab5dac1c2d - stable/12 - usbconfig: actually set the exit code in usage() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/12 X-Git-Reftype: branch X-Git-Commit: 1cab5dac1c2d542f5f6d6719b6efd635264b2e34 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642540543; 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=QhuZXkAmxRPxLMkbImllRHpjZq6FxVJtMlNwtdeU7VQ=; b=BjQQVgdVnpVopwkf/O5FK6BD5t/V6BXcN6MWBcqTDSfaHB6cQTGEx5Yl4eaEJNHlaC7+Vl p3o+TOzyTp/KUrHJCiJspEnaFtaxnuqw4HTKYci/TLa8EvGawYeaO28SrrMjituKcy+Rak eU3YvKVpHcpsP2FZN1hdLkEOsxt5BqS57QyDpM5+087uvfwrDJqvOxqO3g0In+nAJVaPZ6 j+W3V9sQt3jpBAfVF5GE7BADggXzR1f8uy6eskJDy6ZUJwUgaXTdZRMzGHZ2rjlKeqJMsh nWGeIa+C5IAf1u/Zdp2QPmaaUSJvBHJP+SLbOlix/xU0aZO03vl+FoLb9BWyaQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642540543; a=rsa-sha256; cv=none; b=qojtSj3wj8Tt7LvxZRiX759/rHgaN78eiaE6xJw29YsmJmXCxiBHzCeEFJN9O+M7zrWBaq gBGXH/Gpl+8i0By+bTzahXu+0MxqD7Lu9rugbApzJVicxr1Q1dMj5Mmr+FRYK4gbqdqLDy IXaLWgbdIenE1MGPUyh9aOffD7jM7PAOlWm48zRtfGxPZB7rA9A/l+OmUuJMg4Ggne40R+ M/mdjEMB9JYVCRYEL0mdpwwP5C4lj4QXVUlUE5a2dOEUD/BGGr2VecJgkX6ZmW3zDkIBFQ nhSxeE0yt4/1+jIyVyTtyKxMvulXZ3Xb08/a0WURvGiLhl8EuqoEGDmIpUT2OQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by joerg: URL: https://cgit.FreeBSD.org/src/commit/?id=1cab5dac1c2d542f5f6d6719b6efd635264b2e34 commit 1cab5dac1c2d542f5f6d6719b6efd635264b2e34 Author: Joerg Wunsch AuthorDate: 2021-12-20 21:25:19 +0000 Commit: Joerg Wunsch CommitDate: 2022-01-18 21:15:26 +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. (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