From 2222af9a91f718c29a89e0423d52c4fdd1702382 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 5 Aug 2020 12:57:10 +0200 Subject: [PATCH] shared: add nm_puint32_hash/nm_puint32_equals helpers They are in practice idential to nm_pint_hash/nm_pint_equals. So, just #define them. --- shared/nm-glib-aux/nm-hash-utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/nm-glib-aux/nm-hash-utils.h b/shared/nm-glib-aux/nm-hash-utils.h index d1c76ea9a5..997c751955 100644 --- a/shared/nm-glib-aux/nm-hash-utils.h +++ b/shared/nm-glib-aux/nm-hash-utils.h @@ -296,6 +296,10 @@ gboolean nm_pstr_equal (gconstpointer a, gconstpointer b); guint nm_pint_hash (gconstpointer p); gboolean nm_pint_equals (gconstpointer a, gconstpointer b); +G_STATIC_ASSERT (sizeof (int) == sizeof (guint32)); +#define nm_puint32_hash nm_pint_hash +#define nm_puint32_equals nm_pint_equals + /*****************************************************************************/ /* this hashes/compares the pointer value that we point to. Basically,