1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

sys/net/ipv4: ipv4_addr_t pointer should be const

This commit is contained in:
Hendrik van Essen 2022-03-05 14:39:35 +01:00
parent f31fdfd12d
commit 60153eed4c

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);
}