diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h index 02a2942f8f..2ebfb1ade9 100644 --- a/src/libnm-std-aux/nm-std-aux.h +++ b/src/libnm-std-aux/nm-std-aux.h @@ -498,6 +498,12 @@ nm_memcmp(const void *s1, const void *s2, size_t n) return memcmp(s1, s2, n); } +static inline bool +nm_memeq(const void *s1, const void *s2, size_t len) +{ + return nm_memcmp(s1, s2, len) == 0; +} + /* * Very similar to g_str_has_prefix() with the obvious meaning. * Differences: