macros: Fix casting for C++ compatibility

Prep for more work on porting rpm-ostree to use cxx-rs.
This commit is contained in:
Colin Walters committed 2020-12-06 23:26:49 +00:00
1 parent a8b4418954
commit 900caea698
1 file changed
+1 -1
+1 -1
View File
@@ -136,7 +136,7 @@ G_BEGIN_DECLS
guard && ({ g_hash_table_iter_init (&it, ht), TRUE; }); \
guard = FALSE) \
for (kt k; guard; guard = FALSE) \
for (vt v; g_hash_table_iter_next (&it, (gpointer)&k, (gpointer)&v);)
for (vt v; g_hash_table_iter_next (&it, (void**)&k, (void**)&v);)
/* Cleaner method to iterate over a GHashTable. I.e. rather than