From nobody Fri Jul 07 16:51:09 2023 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 4QyKCx3s5Wz4m3D4; Fri, 7 Jul 2023 16:51:09 +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 4QyKCx3QTcz4MdZ; Fri, 7 Jul 2023 16:51:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688748669; 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=8MUGdh0sCeuGCHEL3m6l7G2S0Zw+7iS2UyJ/kC/OWEE=; b=PSPQV/ZfNSagjXrt6hDy6amvhZOwP1dgtcJyAa/fXKksbT0dqhNKitace96Uj/4YIYbVEG Z1ruopSd18xqmBteBO/tt3OihAYUTbc1AuJtzgr1vqUKVxUZ5Muk5excruExZLNy0M75Va E9IP6e/M1VbWcePOUEqbHGLImJHANs49afndojM9HAzLhetiUFt1spiBIeuQ0XdKR1kKf9 t9+4+GhfkpMSc+8qotpMFvPTM0Uw9uuz0e6xzoUe+gs7NR2Z94tX5o659u0yeizi3CoYIi 8Aj9964WkyNme66qI8Ja4XDMEiB1FVzFx7iU332W8PC+s6xLj2smwOsThrp07w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688748669; 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=8MUGdh0sCeuGCHEL3m6l7G2S0Zw+7iS2UyJ/kC/OWEE=; b=TUWV0J3o2E4jRaba81R4qFbhP67CckHmw8DezEj97MT6R8qXXeIUBRb08wVifLmkGBW4xb aTrGLOljIQ7H1QcQgqBWJHN4CLsV2DcM+DWVz+lt2RKtQY4BMkkRFVJ073el3B34S0Hm5J lDI23Sd+LMyF0ZbVuztm2E3zmjR5vazhX53BL0WL8MCNXS+9UCuwfxrLO2x0vK5kyg9gjZ 5GeG7J5EoHO6gnN1/nHc4ihH7f33bBHNwyIRZuOv/9dfrLNX5q1yVY76ceHiXbHwedYEri G2FJ6TmHDy4FPwWfT77zc5eheHdjX2/cPkQpdsK0RT5OQcQOA3pTu0G4M6q3vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688748669; a=rsa-sha256; cv=none; b=NLlKrhQatPuOPoNtFgY+BRFjNta8mht/1d5bkNknkATVjBfwXJaKEZdpWoRU6+rF8VbW6Q Bd0r5XzQdIL91NycCwOOiddTbvy5tA7eHHa0EOurz0E4R0DJ5A4/GdTToiYZwZso/PY/1Z z7FaGId6L3L8rPwzjrijL4osbbvFHtNcK4RUzNhM6f7lgzYp0LUNQNt/XPPkHGxMrBd3Na 027L6uPoJvPe3lED5867ZJVhCqDK9Wx7CxNt4NsuibjuVJbBKh1OZr06E+DC4U+CUYzFHW /PgAKJXk+aYGVNDRZFtIdAvaEZr8xyjauCK4BIaCYb0cEHllCDOQ4x9rBuzrgg== 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 4QyKCx2Qp8zmWR; Fri, 7 Jul 2023 16:51:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 367Gp9jK010648; Fri, 7 Jul 2023 16:51:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 367Gp9nh010647; Fri, 7 Jul 2023 16:51:09 GMT (envelope-from git) Date: Fri, 7 Jul 2023 16:51:09 GMT Message-Id: <202307071651.367Gp9nh010647@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 5c3b5af6a2f6 - main - Mark usage function as __dead2 in programs where it does not return 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5c3b5af6a2f6ebcccb73d1472f0aac63cacdee7f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5c3b5af6a2f6ebcccb73d1472f0aac63cacdee7f commit 5c3b5af6a2f6ebcccb73d1472f0aac63cacdee7f Author: Alfonso Gregory AuthorDate: 2023-07-07 16:39:23 +0000 Commit: Warner Losh CommitDate: 2023-07-07 16:45:18 +0000 Mark usage function as __dead2 in programs where it does not return In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735 --- tools/tools/switch_tls/switch_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tools/switch_tls/switch_tls.c b/tools/tools/switch_tls/switch_tls.c index 788926bfb92a..fecf58f429cb 100644 --- a/tools/tools/switch_tls/switch_tls.c +++ b/tools/tools/switch_tls/switch_tls.c @@ -61,7 +61,7 @@ static bool tcpswitchall(const char *, int); static bool tcpswitchbyname(const char *, const char *, const char *, const char *, int); static bool tcpswitchconn(const struct in_conninfo *, int); -static void usage(void); +static void usage(void) __dead2; /* * Switch a tcp connection.