1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17762 from HendrikVE/pr/const_ipv4_addr_t_pointer

sys/net/ipv4: ipv4_addr_t pointer should be const
This commit is contained in:
benpicco 2022-03-08 12:10:42 +01:00 committed by GitHub
commit 888b2aa098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ typedef union {
* @return true, if @p a and @p b are equal
* @return false, otherwise.
*/
static inline bool ipv4_addr_equal(ipv4_addr_t *a, ipv4_addr_t *b)
static inline bool ipv4_addr_equal(const ipv4_addr_t *a, const ipv4_addr_t *b)
{
return (a->u32.u32 == b->u32.u32);
}