From nobody Wed Apr 06 23:46:26 2022 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 117831A84687; Wed, 6 Apr 2022 23:46:29 +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 4KYh4345Sdz4QwY; Wed, 6 Apr 2022 23:46:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288787; 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=CDSx/mpV8aTzr7u1Y9VARvN0n5fOTL8HCQZATTRQlpo=; b=DiISQ0h7WbkYVHyEQp8X19Zu4oOSw7yCiiiB2KGWnwAnheZ0/xIDMGKDn6yKlm2bn35P3B UxRLUPeV+GOYUP0vTyOemflm+GV7J1oiyhtWMfde2a5LZJ1yMyXXbqkt18kSE9UjcNrA0T 98VLEc30cK087ZD7gm2uQ9eanjweShsYP3XjGnFN6+uFwcCfOEDdDo33NKu16J0+840jF1 erw+Bx4ggZ+V2zwl/EiQ4Ebw6Ip8sfE1UuakL9RefkMgHzTn4JsAQJZNfBKznU4qJmT+CI FdZCIa/+kFIey/OufwUkV2GX+uyRwzaT9+BtAqcr1E6aLlru6tj7Xdw0RJ5I9w== 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 117D3245E7; Wed, 6 Apr 2022 23:46:27 +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 236NkQnN009245; Wed, 6 Apr 2022 23:46:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 236NkQsS009244; Wed, 6 Apr 2022 23:46:26 GMT (envelope-from git) Date: Wed, 6 Apr 2022 23:46:26 GMT Message-Id: <202204062346.236NkQsS009244@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 3f6d3f0285f5 - main - alias_nbt: Move debug-only variable under #ifdef LIBALIAS_DEBUG. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3f6d3f0285f505f315f4eee188a1dc152aa3381f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649288787; 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=CDSx/mpV8aTzr7u1Y9VARvN0n5fOTL8HCQZATTRQlpo=; b=R3ZRzVH5i3NoUzwLQaWDcMsXPOv+UcuUREaiCbBXtr+xIGrecRcp1m+GKxcOUFMfAoGnUa zR7hBJXEWhw3xEdLXuAicZeK8z1lia+2/3g9xzb+R6t/A8dU8Us9ZcOM83mLCoYXYOJNwo w4OK3yY/G7WMogVbQVSoJ+WVXzR2CZQZwMd22w6zh/zTjO1QZTM0kdd3rfUppIlicjnT+N UPfnwpX7Ayk415uzXyb4tBc+jc8pFrJqrPeNGam0HuuR+Pc/+LJFqBEkoQLMCa88dwd7+U e/gRGNzwunwmCGqkmkAIrHlxdJdy0uhjLn+vvl8o1nhCQPktbbgGCR2POVyTLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649288787; a=rsa-sha256; cv=none; b=mF3Qj5m+9+SxDBN8sohP/kUKMe1V5XFKdipVmNXD62WAAXjr/ZAIi+Qir2nfBCjTLZSdyS w7hLmQKgt/2cP+9yG8CmdzraoMrzRhrE5M1PULbDtK2lFqx+TK230EV/FEfw0qZ2QuQ+w+ XrTXRyIdSvOHJ6qukcJepnBbcDvXxrVdzDwARyMs2zAUIMJsYivH8AXyXqSrhf9jslGa4Z Hz4wny0h9bvQ2tkI6xCYfHI1bkbaFBU2N5+j3EYjA82ziC4Jd/S8kd+gijD3BjIIt5l4aC 4/nKU3zXGUvMzcvomIXVxWgvGB0bAKR/dtcwMwgusbFObcFSeVchpsk2/ypCeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3f6d3f0285f505f315f4eee188a1dc152aa3381f commit 3f6d3f0285f505f315f4eee188a1dc152aa3381f Author: John Baldwin AuthorDate: 2022-04-06 23:45:29 +0000 Commit: John Baldwin CommitDate: 2022-04-06 23:45:29 +0000 alias_nbt: Move debug-only variable under #ifdef LIBALIAS_DEBUG. --- sys/netinet/libalias/alias_nbt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/libalias/alias_nbt.c b/sys/netinet/libalias/alias_nbt.c index ab4bd818e1a5..82b6742f4b3b 100644 --- a/sys/netinet/libalias/alias_nbt.c +++ b/sys/netinet/libalias/alias_nbt.c @@ -251,7 +251,9 @@ static u_char * AliasHandleName(u_char *p, char *pmax) { u_char *s; +#ifdef LIBALIAS_DEBUG u_char c; +#endif int compress; /* Following length field */ @@ -283,8 +285,8 @@ AliasHandleName(u_char *p, char *pmax) #endif while (s < p) { if (compress == 1) { - c = (u_char) (((((*s & 0x0f) << 4) | (*(s + 1) & 0x0f)) - 0x11)); #ifdef LIBALIAS_DEBUG + c = (u_char) (((((*s & 0x0f) << 4) | (*(s + 1) & 0x0f)) - 0x11)); if (isprint(c)) printf("%c", c); else