From nobody Mon Dec 06 00:27:55 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 236D718BE26A; Mon, 6 Dec 2021 00:27:56 +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 4J6kmC3jJvz4XTW; Mon, 6 Dec 2021 00:27:55 +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 4673721CB5; Mon, 6 Dec 2021 00:27:55 +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 1B60RtMD084583; Mon, 6 Dec 2021 00:27:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60RtMk084582; Mon, 6 Dec 2021 00:27:55 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:27:55 GMT Message-Id: <202112060027.1B60RtMk084582@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: 20e0f16d3588 - stable/13 - libc/net/gethostnamadr.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: 20e0f16d35883b2bfe5d1e4fbe57090fdfc7a285 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750475; 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=OrZiaNpDhaG9qbjC8mTl3RYxJnJfIJBcfdUawY0JGeM=; b=tXlt1R6dJKZB3e7KNqf4LUa+wRgiKoq1q4nGUNbbciKsoTSYkxDT0h/ZZViJf+ceII6L/z kYCQWMVHBDYRHQBBAzgt5fP+hzRs8jWa9tOaS/L6DS1XeL+AhrXo6Wh2SKKansbzWZ4X21 yTenCgLiZxz1ixHbLrfcOHiYLB+5iJznPSVe+vecavN1/xkOu4yEF1rzQNcc5AyXjchCKx mxIzodjh8uF9x6F7pxEn1IeJxaIAGTY0L5TxV+QvOqn1ALfL9HDLTJ4Iyq6apdqRmU1AlW F/wzGkTJGFe1uMA/cvyWEuKx1jmAoD9qT4V5IY62tzDPR4qrmD6aGWY5g6nAfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750475; a=rsa-sha256; cv=none; b=yH5IGEqQm2Pc3X5trFRI+cev5EUMWBFSsw4N3aJ51EToBjdBJX5HnDpmetM0xympXGdsQn zRKxlQGcunGhgj6o1/LNmlzhvGAZ2JZ6YYdK51tnDkMvASQc9+Okowmz34XMOW8W05XmmY IK94smYKmvMl2yuzZkwWqiw6mA7Z0+pS2c/dd62r4aWYDPOy4qNeTlWoj7FkW8K5NpdWDP CbWz/iuwFfTl8mbh1953CUGazmZA4HeNaykLbVppOlAK+XgPa+SFC85o5C/xG/TB8+o60S Tek6WudOR0HhH/p5CMZd1IyUjio7mRqW8r3+T8qsLH6+kv8dTTWe7OLGVn0vAA== 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=20e0f16d35883b2bfe5d1e4fbe57090fdfc7a285 commit 20e0f16d35883b2bfe5d1e4fbe57090fdfc7a285 Author: Konstantin Belousov AuthorDate: 2021-11-28 03:22:24 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:44 +0000 libc/net/gethostnamadr.c: mark write-only variables as __unused (cherry picked from commit 024547c9bd6f7e65d383199aab80dae08824ae48) --- lib/libc/net/gethostnamadr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 718a64defab9..2da8024c47f4 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -258,10 +258,10 @@ static int host_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *str; - void *addr; - socklen_t len; - int type; + char *str __unused; + void *addr __unused; + socklen_t len __unused; + int type __unused; struct hostent *ht; struct hostent new_ht; @@ -364,10 +364,10 @@ static int host_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) { - char *str; - void *addr; - socklen_t len; - int type; + char *str __unused; + void *addr __unused; + socklen_t len __unused; + int type __unused; struct hostent *ht; char *p;