Message ID | 20210416164808.396046-1-jemele@chromium.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=hDfhNFBR; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cI4iRR77; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=cPagmvS4; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FMMcb1PtRz9sVv for <incoming@patchwork.ozlabs.org>; Sat, 17 Apr 2021 02:49:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=srzuUwXZkv3LS7ku7bsAAvHH5aeWfU0WeFC3oZehET8=; b=hDfhNFBRS6Kq++c4kTyVTjoba8 owMvOYyQklO+9TyjShsSvfL60ZVdFPNkV76UZiaVZxJSrGqBOHGKvG/JOBZbJ2hzq+jfnpC8nIwjQ psqV2K8D/+/L/sM7rpzrLaPOlPGbwOUPSpxJM2/YPTgoek1IGY9wrO/1nI3n4VtrNKpadaNqhzma6 qRHqP/MjzolLOXM6H9kUuUUN1uMa3dcFKVUEx0O8NrdSR6Svlo7U+RCvGiwSkFAqdEhJcXKAVAjR5 Q6yYgfP5Qo3muTAf4VJA/YNWf5X3QHVIibH8T6dYTGM13XTGxBa/GmAB1lANp+yThPRwS3qdBz1tr Rk9msnjQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXRdm-002qz6-08; Fri, 16 Apr 2021 16:48:22 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXRdi-002qyM-EQ for hostap@desiato.infradead.org; Fri, 16 Apr 2021 16:48:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=6K5ImLUbp+nuxIwYOUmL0Qq6dLtQL0oJ4u8CYJQl0f8=; b=cI4iRR77ToiHRLwGfHwNokWfx/ Fj+Tj7VpKTztwWYCEa91c/apUPFEqT7u3FRov239lEz4QW003vgyzx9LfJctzfFgA+u2jzXgfGi6s Ynbv1xdl8jZb6sWjieZWDvPhdCDwFeRg1Gq+0T3FRIM5T0d7XCyR1OqENwcJbSlEt7fa9a+qZYKHG z9UrsDLA/EU4JmP4ueA+j3u/d1iuo44lWS3GYsG1yPgM0pFRc2RAhW6F1WsDraurnPBVIWzJlrWje F1DZfKzBuqTakPHchVsYNniiLf9D/80L3d5zbR6+fXhNQT++jXWv38+jtr4Oob/AYqgIGJo+kwmLb O7e1KoDg==; Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXRdd-009ZK2-G9 for hostap@lists.infradead.org; Fri, 16 Apr 2021 16:48:16 +0000 Received: by mail-pf1-x435.google.com with SMTP id h11so1068362pfn.0 for <hostap@lists.infradead.org>; Fri, 16 Apr 2021 09:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6K5ImLUbp+nuxIwYOUmL0Qq6dLtQL0oJ4u8CYJQl0f8=; b=cPagmvS4OkPr1mS2Kd0TAlbc8cer7aILsuUn33DGN7VW24vLRVOE0C5D1r49WWlxPZ ez8S+B1vSUIqvNx7BjnLWdWrTHnLjTm9ctwYgRSVwFvr6RSrVwd8CoyPhWEuyQ4oSGL0 /gt0njYw1MKlQJuSSXla+CKSsHLz6WTDyo0IM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6K5ImLUbp+nuxIwYOUmL0Qq6dLtQL0oJ4u8CYJQl0f8=; b=EatmCld3Y5mR4HtqF4elV+8gudJESAEbHFei/8xoWvoAqQE685aZo7t1lA2sF0CYeQ ld9KvmEHzrS9aHufw1B/O0LHY2U9OZ7OeutKwM4vxh8yfoLKGIwvU3YnyIie5kN9I5qK ki8Utql4FgV1opHAegVv3hcUuQg4jywhZLQMBOMgoj9JrHca2ck53SEmcTE9OGOA+frl NwVPf+1dRbv4QZkKXN+SbMvKhgqWLtMsr3DTaqgF/rfYIXE5UWIz6/bg/Vgo9C7aBeA6 1WcqutizLwyt/jub6WJbOxOXM07WkksJ6AEaGFR9djbIcoJYJkHOaHVoMgGKxPNHS4GU d4qw== X-Gm-Message-State: AOAM531aolehDNZ97GG6mKObI/mQAhWoE/wf8LX6ZB2z+zm/3RQEIiTC Q1fvRndRbzhktvNpHMyZbXVAeQUYwDUQMA== X-Google-Smtp-Source: ABdhPJzSK/jD13KE8dH+LL8am5wLUNjuDSJCY1Kpw9g1c1LlwFwynHQPN+RjDDLonAl3Xifqc6tRFQ== X-Received: by 2002:aa7:90d3:0:b029:241:21a1:6ffb with SMTP id k19-20020aa790d30000b029024121a16ffbmr8517381pfk.43.1618591692576; Fri, 16 Apr 2021 09:48:12 -0700 (PDT) Received: from jemele.c.googlers.com.com (152.33.83.34.bc.googleusercontent.com. [34.83.33.152]) by smtp.gmail.com with ESMTPSA id i18sm2039911pfq.59.2021.04.16.09.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 09:48:12 -0700 (PDT) From: Joshua Emele <jemele@chromium.org> To: hostap@lists.infradead.org Cc: Joshua Emele <jemele@chromium.org> Subject: [RESEND PATCH] RADIUS client: Fix void-pointer-to-enum-cast warning Date: Fri, 16 Apr 2021 16:48:08 +0000 Message-Id: <20210416164808.396046-1-jemele@chromium.org> X-Mailer: git-send-email 2.31.1.368.gbe11c130af-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210416_094813_565974_EC8FBC4F X-CRM114-Status: GOOD ( 10.20 ) X-Spam-Score: -0.5 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Found using x86_64-cros-linux-gnu-clang: radius_client.c:818:24: warning: cast to smaller integer ... RadiusType msg_type = (RadiusType) sock_ctx; Signed-off-by: Joshua Emele <jemele@chromium.org> --- src/radius/radius_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (-0.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:435 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.3 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[RESEND] RADIUS client: Fix void-pointer-to-enum-cast warning
|
expand
|
diff --git a/src/radius/radius_client.c b/src/radius/radius_client.c index 4f0ff0754..db027b4a4 100644 --- a/src/radius/radius_client.c +++ b/src/radius/radius_client.c @@ -815,7 +815,7 @@ static void radius_client_receive(int sock, void *eloop_ctx, void *sock_ctx) { struct radius_client_data *radius = eloop_ctx; struct hostapd_radius_servers *conf = radius->conf; - RadiusType msg_type = (RadiusType) sock_ctx; + RadiusType msg_type = (RadiusType) (uintptr_t) sock_ctx; int len, roundtrip; unsigned char buf[RADIUS_MAX_MSG_LEN]; struct msghdr msghdr = {0};
Found using x86_64-cros-linux-gnu-clang: radius_client.c:818:24: warning: cast to smaller integer ... RadiusType msg_type = (RadiusType) sock_ctx; Signed-off-by: Joshua Emele <jemele@chromium.org> --- src/radius/radius_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)