Re: [PATCH 5/6][next] zd1201: Avoid clashing function prototypes

From
Kees Cook <hidden>
Date
2022-10-18 02:49:52
Also in
linux-hardening, linux-wireless, lkml
Reply to
Gustavo A. R. Silva, 2022-10-17
On Mon, Oct 17, 2022 at 03:35:57PM -0500, Gustavo A. R. Silva wrote:
quoted hunk ↗ jump to hunk
[...]
@@ -1678,12 +1682,11 @@ static int zd1201_get_maxassoc(struct net_device *dev,
 }
 
 static const iw_handler zd1201_private_handler[] = {
-	(iw_handler) zd1201_set_hostauth,	/* ZD1201SIWHOSTAUTH */
-	(iw_handler) zd1201_get_hostauth,	/* ZD1201GIWHOSTAUTH */
-	(iw_handler) zd1201_auth_sta,		/* ZD1201SIWAUTHSTA */
-	(iw_handler) NULL,			/* nothing to get */
-	(iw_handler) zd1201_set_maxassoc,	/* ZD1201SIMAXASSOC */
-	(iw_handler) zd1201_get_maxassoc,	/* ZD1201GIMAXASSOC */
+	IW_HANDLER(ZD1201SIWHOSTAUTH, zd1201_set_hostauth),
+	IW_HANDLER(ZD1201GIWHOSTAUTH, zd1201_get_hostauth),
+	IW_HANDLER(ZD1201SIWAUTHSTA, zd1201_auth_sta),
+	IW_HANDLER(ZD1201SIWMAXASSOC, zd1201_set_maxassoc),
+	IW_HANDLER(ZD1201GIWMAXASSOC, zd1201_get_maxassoc),
 };
Like with the others, leave these as-is...

-- 
Kees Cook
Thread (15 messages) 15 messages, 3 authors, last reply 2022-10-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help