X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/316670eb35587141e969394ae8537d66b9211e80..4d15aeb193b2c68f1d38666c317f8d3734f5f083:/bsd/net/lacp.h diff --git a/bsd/net/lacp.h b/bsd/net/lacp.h index 04c81c167..71ff0d543 100644 --- a/bsd/net/lacp.h +++ b/bsd/net/lacp.h @@ -273,7 +273,7 @@ static __inline__ uint16_t lacp_uint16_get(const uint8_t * field) { uint16_t tmp_field; - memcpy((void *)&tmp_field, (void *)field, sizeof(uint16_t)); + memcpy((void *)&tmp_field, (const void *)field, sizeof(uint16_t)); return (ntohs(tmp_field)); } @@ -301,7 +301,7 @@ static __inline__ uint32_t lacp_uint32_get(const uint8_t * field) { uint32_t tmp_field; - memcpy((void *)&tmp_field, (void *)field, sizeof(uint32_t)); + memcpy((void *)&tmp_field, (const void *)field, sizeof(uint32_t)); return (ntohl(tmp_field)); }