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:
commit
888b2aa098
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user