From nobody Mon Dec 06 00:27:58 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 6F12318BE888; Mon, 6 Dec 2021 00:28:00 +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 4J6kmG5mtTz4XNy; Mon, 6 Dec 2021 00:27:58 +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 94FEB21D17; Mon, 6 Dec 2021 00:27:58 +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 1B60RwGM084664; Mon, 6 Dec 2021 00:27:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60Rwrb084663; Mon, 6 Dec 2021 00:27:58 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:27:58 GMT Message-Id: <202112060027.1B60Rwrb084663@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: 9e8f0f693481 - stable/13 - libc/net/getservent.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: 9e8f0f693481f183d6c4a0cdb218ea22abec2220 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750479; 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=d6anIKHI0AXFAMxMK6SHSVcCMK/W+gVOLKDbDKxQFRY=; b=ZBmwtLjGEWNVwAX79bGLIb1swRi31YAM+ExjehGQVMF93LZOtW+xRsAyfC3sCAUA36jNKq oXRkKiirJjnJlVkcY0KLrjWKMvVo7Ty14VcM5rMRw9aDka3jbna9jd71iIZ2dubAJnffd9 bY8Yvb2dN3QwH3emHMsTR2wk4dLhGY1QlVJlzViPfjEH9JGS8GobuEhHR3Fk3bOVqEm2aZ IZI1m/RwDFdUb9JSKvhMd+7F4dCHHjTlpG/iYrnsF+DJThTXmqWgaXIszi44aZkYBLaMtw ZncRr+5jTD96SekXH0wW9V8u4rTcOLNPa90NqHX4yKK3ysIskL266NbceCzkPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750479; a=rsa-sha256; cv=none; b=TR7LpZ4u+4coMew+SGuocXeebreKxFYvZVV+HRV7wB0UVJY/W4zOHjdA2gFKwHIYQHohu9 PnoqNYjJsQjpWHR0xBo5inxTw+5dslugh05DkefY/+pPFasuGOvhTa7GeR3FEeIrPbiqNw il16zJwodGylfatv3G8r0cW9ofZNuh1DDGTCcAOzkul6nZY0LsgL6DO+H197tBKPAnHkQb ESMMUAPpqoTNUjU5/PBq7gcIbjPQ6oVHq0nibuhjAvig8oVaKO0bkudLRAK+LA2H+93I/h +tuao8Yg7/XqOTLCrieXCzKt0i4qjXEb9ZEdctMa9vo6qFb1LbTxI2J0bhz0uw== 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=9e8f0f693481f183d6c4a0cdb218ea22abec2220 commit 9e8f0f693481f183d6c4a0cdb218ea22abec2220 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:52:33 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:44 +0000 libc/net/getservent.c: Mark write-only variables as unused (cherry picked from commit 346eaa41f89aaf1545b89f77a88fd1cdd3c37456) --- lib/libc/net/getservent.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c index 76db40d96cf5..bcb9f8ff8b84 100644 --- a/lib/libc/net/getservent.c +++ b/lib/libc/net/getservent.c @@ -947,12 +947,12 @@ int serv_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - char *proto; - int port; + char *name __unused; + char *proto __unused; + int port __unused; struct servent *serv; - char *orig_buf; - size_t orig_buf_size; + char *orig_buf __unused; + size_t orig_buf_size __unused; struct servent new_serv; size_t desired_size; @@ -1048,9 +1048,9 @@ int serv_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *name; - char *proto; - int port; + char *name __unused; + char *proto __unused; + int port __unused; struct servent *serv; char *orig_buf; char *p;