mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 06:43:06 +00:00
rtl8188eu: Replace several local size defines/typedefs with kernel header version
These include the following: SIZE_T => size_t SSIZE_T => ssize_t SIZE_PTR => size_t Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
41ad3e27c6
commit
2685b52404
18 changed files with 58 additions and 63 deletions
|
@ -1349,12 +1349,12 @@ void dhcp_flag_bcast(_adapter *priv, struct sk_buff *skb)
|
|||
|
||||
if (iph->protocol == IPPROTO_UDP) /* UDP */
|
||||
{
|
||||
struct udphdr *udph = (struct udphdr *)((SIZE_PTR)iph + (iph->ihl << 2));
|
||||
struct udphdr *udph = (struct udphdr *)((size_t)iph + (iph->ihl << 2));
|
||||
|
||||
if ((udph->source == __constant_htons(CLIENT_PORT)) &&
|
||||
(udph->dest == __constant_htons(SERVER_PORT))) { /* DHCP request */
|
||||
struct dhcpMessage *dhcph =
|
||||
(struct dhcpMessage *)((SIZE_PTR)udph + sizeof(struct udphdr));
|
||||
(struct dhcpMessage *)((size_t)udph + sizeof(struct udphdr));
|
||||
u32 cookie = be32_to_cpu((__be32)dhcph->cookie);
|
||||
|
||||
if (cookie == DHCP_MAGIC) { /* match magic word */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue