mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-14 23:50:29 +01:00
shared: add NM_CMP_DIRECT_STRCMP0() macro
This commit is contained in:
parent
15071e4741
commit
8d5febbb38
1 changed files with 3 additions and 0 deletions
|
|
@ -113,6 +113,9 @@ nm_ip_addr_set (int addr_family, gpointer dst, const NMIPAddr *src)
|
|||
#define NM_CMP_DIRECT_MEMCMP(a, b, size) \
|
||||
NM_CMP_RETURN (memcmp ((a), (b), (size)))
|
||||
|
||||
#define NM_CMP_DIRECT_STRCMP0(a, b) \
|
||||
NM_CMP_RETURN (g_strcmp0 ((a), (b)))
|
||||
|
||||
#define NM_CMP_DIRECT_IN6ADDR(a, b) \
|
||||
G_STMT_START { \
|
||||
const struct in6_addr *const _a = (a); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue