From nobody Mon Dec 06 00:27:57 2021 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 4322118BE4F2; Mon, 6 Dec 2021 00:27:59 +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 4J6kmG2CNzz4XWk; Mon, 6 Dec 2021 00:27:57 +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 7B7A821BA2; Mon, 6 Dec 2021 00:27:57 +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 1B60Rvje084640; Mon, 6 Dec 2021 00:27:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60Rvte084639; Mon, 6 Dec 2021 00:27:57 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:27:57 GMT Message-Id: <202112060027.1B60Rvte084639@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 75f8750524ba - stable/13 - libc/net/getprotoent.c: Mark write-only variables as unused 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 75f8750524baf7c910f24f065b1d3fe386e7197c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750478; 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=eaD4EKdFu1ZOqFOS4xI2u4/kEVd8hVD9N0oWcuSjTqE=; b=bXQpGjTkhYzoKM+k9wk3u6/8GR3A2O9KR5gmdVSIBGeAO8HRIX2FpM7sHAxftQcvukqcdl lhL/jWUy+7KgkWe4m9f3xw3TwLiNLO2FunLLlFX1YU1LSffbohCmMpYdqySfglkylQYRQ7 rjjyZu9fNXdH6JT918lQPTbv7qULXCpi96hKCb4czM4pDNO6TpLWs3+QEhf7VockAvszI/ vBMx76ugS/fOTfgozmLs3Vdy+VPNugijAvaOaWDI1AtazdsaNTXuCNCRC7GT5dxtA3Ym+H t55Ph7k+0o1B0NfKQwjW9N90mjtN1pWNBnU0ItcxiYm0UBnP0mPBDnP3h/se0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750478; a=rsa-sha256; cv=none; b=C5cfZ3LCg6fTCttyJYLJfDAXNSiKLeX/42AMcdXI8ahQaOShjqpnl7Qb1w1j0JGCj75wDf nvrh9hM5Wi+JXC/eRz+8fVbtyr+Y6L3KOx2nZtPxHeMgDmA5ussxYPPHM7WQRbDfvgKMIb 2ko5myrtnYImWZUMVVXEd8Yzegpvyirh1gp10XvzCOc7l4gGOvTZE5AY4pqyQk52dusDwB nUGu4XncENlX6PZ/KaznwteXl1m/oA6gQfyMnysjpJUmrC9URpII4d7wKZtZ4c9N7nz+KB mPXuczjU0FoZEYnAqot8X9bbrMHIIoc14w7F4zxTqTHvUvBdhWlscvy5Bg7PbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=75f8750524baf7c910f24f065b1d3fe386e7197c commit 75f8750524baf7c910f24f065b1d3fe386e7197c Author: Konstantin Belousov AuthorDate: 2021-11-28 03:48:05 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:44 +0000 libc/net/getprotoent.c: Mark write-only variables as unused (cherry picked from commit f6d403743c9eb1facdfcc0fdfbec74fb19dbbc21) --- lib/libc/net/getprotoent.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c index 73b069250499..b3bb52195dfc 100644 --- a/lib/libc/net/getprotoent.c +++ b/lib/libc/net/getprotoent.c @@ -144,11 +144,11 @@ int __proto_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - int num; + char *name __unused; + int num __unused; struct protoent *proto; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct protoent new_proto; size_t desired_size, size, aliases_size; @@ -231,8 +231,8 @@ int __proto_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - int num; + char *name __unused; + int num __unused; struct protoent *proto; char *orig_buf; size_t orig_buf_size;