From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202602 header.b=LuhEQa7O; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 2683E5A026D for ; Mon, 16 Mar 2026 06:46:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1773639991; bh=761h9buwweVWh+n9UnYEGJLaW5HszKcDCeHwHQC75ko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LuhEQa7Ol5TgOmutOnXHTqsKdHwmhnooC2wTMondCb6Nl22hCNMq3REU1tc1aqIll FcYtgAjbmTqLV29NRgO4RGHGF6vteCOxOFk0SXzgdxdB5Quegn8wqMJZIoL3uBUJp+ RJR/XJZUpU0Cj//O/V/MPhZmO9otLBzJbaOzKnsjiEs2rCrZKd1hy98YzI2/R7hp6K ut702XcOIHMIAyXwsSQx0yyl7jtkb/NFh5Wf15VKF0/Y1KYRFBOupUEwDgBTAfu+qD pJvA3TjKK6wk1seuaFsdjZ4gK9rD7JdWoUT/aNxy+aywPwEuPFHd9zvKVdIu2WOWBF xROXaSMNCgccA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4fZ3xM5C21z4wBB; Mon, 16 Mar 2026 16:46:31 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 3/5] pif: Remove unused PIF_NAMELEN Date: Mon, 16 Mar 2026 16:46:27 +1100 Message-ID: <20260316054629.239002-4-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260316054629.239002-1-david@gibson.dropbear.id.au> References: <20260316054629.239002-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 4WUL3YQKZFUQ4VC4RSATIXM6JA62LR2S X-Message-ID-Hash: 4WUL3YQKZFUQ4VC4RSATIXM6JA62LR2S X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: PIF_NAMELEN was meant to represent the maximum length of a pif name. However, so far all names are compile-time strings, so we haven't needed a length. Remove it, since it's slightly misleading. We can re-introduce something like it if/when we actually need it. Signed-off-by: David Gibson --- pif.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/pif.h b/pif.h index e471fca3..7bb58e5c 100644 --- a/pif.h +++ b/pif.h @@ -35,8 +35,6 @@ enum pif_type { PIF_NUM_TYPES, }; -#define PIF_NAMELEN 8 - extern const char *pif_type_str[]; static inline const char *pif_type(enum pif_type pt) -- 2.53.0