From nobody Mon Apr 29 04:27:26 2024 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 4VSVfk6pnBz5JBn3; Mon, 29 Apr 2024 04:27:26 +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 4VSVfk3vCYz41S2; Mon, 29 Apr 2024 04:27:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714364846; 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=N2/Gc6OAnXhl/scf9yxcJwGxBuI7+E7+2NzbPQbRUQs=; b=Gwx8BLNdg4Iw0Jz322qJJH6wNeOKR8lyxmxrDvD3JAyI2VMlFNKedXi9F6COhmnQSRpeO9 OXfZbHhv8XlKVJ+s6lqVBdl7OYW6JKrOiY48Xt4oRoAmS+o1IciGtF3Ro9/j87BCRp6FSD Fxi5yosJLiqVjrBahaj4X5PGClXQVuAOAS20DCEcPM9Ny/6tB+5CCRv0TcH3tykA8gzmU/ bNw+tpkxJLy9LfTXZNsgzVldYgR4vDKz2Zorj9GumA8l02n3jGLeB9oeldLgU07/h5TpBX c/MJ7VZglJHhZJwbqQc1Y9ZqRqtv5yJ9U4Ky3PxrNzFP4rPzw0KOppgI4uPjjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714364846; a=rsa-sha256; cv=none; b=DStf9BEfqSRtDhpcKgIiq7i0dB+/87DZgfmymXnCaYAuXKXJUJoYgt/ZL8qVI9TmsnIfRb qmFZ5dZVjDCLwzXljoek4OJkuCvC5oXMpXxW8olW22v9ikhZVkE4kmPKifX5tyCBU+ZNIj sw472ZkVc7Wb4FxLSPGgT6vYqLajI27tkXwbeCc+c8wBYIuDz1Gh07lQkvWc1Mrs6ZsUM+ 3X3U8jYscjf1z0zdGJAnklL0L2AeIZ9jC6uwJIVgntFy89NC6XKS3CK19d8JgAT2r6Ttav 8jrnHQwpKeogSjq2XK5tZIcipOu98Xw3V2pQYxWKv22jGGHHCF5IWcGz556guw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714364846; 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=N2/Gc6OAnXhl/scf9yxcJwGxBuI7+E7+2NzbPQbRUQs=; b=nUSptMZ+OD9A0Ebl4FX8ijG4N/q08I3j0M2W6frNnfa4JZgfqEC/SGFK8qGAXYqQQUvqsb qweVl5tM/K++e77CCe4rNhwjXdVmxtoNbZ+wwdcvTOIBFjbiVKu0ymc+/3pkedIlsYg1cq Iek5JtDpFCiFOm3FvBZwfAhHhrwUr50/ckTpqqnNSQO3kEStQQ+vqfpvE7HGEAYFqymN7f SbGy4zDaaMnQ944xTiEWZiPVjfR9Uih4NaUNIGy6BI5j4n1FOsedo3LAfvqforJa+3EnwH 2CQ5SoTWXoGZ6O9qjEGhy1ANwcjVDN8Z4zuxp+5bbtwTlIglA1P2MZVjogn8fg== 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 4VSVfk3GfDzv13; Mon, 29 Apr 2024 04:27:26 +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 43T4RQi3045053; Mon, 29 Apr 2024 04:27:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43T4RQHv045050; Mon, 29 Apr 2024 04:27:26 GMT (envelope-from git) Date: Mon, 29 Apr 2024 04:27:26 GMT Message-Id: <202404290427.43T4RQHv045050@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: cbfd42cc07cc - main - wlandebug: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: cbfd42cc07cc1b684a1d512e1265a1cd5e47e677 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=cbfd42cc07cc1b684a1d512e1265a1cd5e47e677 commit cbfd42cc07cc1b684a1d512e1265a1cd5e47e677 Author: Elyes Haouas AuthorDate: 2023-11-07 17:14:34 +0000 Commit: Warner Losh CommitDate: 2024-04-29 03:30:55 +0000 wlandebug: Use nitems(foo) instead of sizeof(foo)/sizeof(foo[0]) Pull Request: https://github.com/freebsd/freebsd-src/pull/888 Signed-off-by: Elyes Haouas --- usr.sbin/wlandebug/wlandebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/wlandebug/wlandebug.c b/usr.sbin/wlandebug/wlandebug.c index b44d82d8dd1d..b086de94eb2a 100644 --- a/usr.sbin/wlandebug/wlandebug.c +++ b/usr.sbin/wlandebug/wlandebug.c @@ -33,7 +33,7 @@ * wlandebug [-i interface] flags * (default interface is wlan.0). */ -#include +#include #include #include @@ -47,7 +47,7 @@ #include -#define N(a) (sizeof(a)/sizeof(a[0])) +#define N(a) nitems(a) const char *progname;