]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic: Fix incompatible type for arguments errors in C2X
authorCristian Rodríguez <crodriguez@owncloud.com>
Mon, 2 Jan 2023 00:06:57 +0000 (00:06 +0000)
committerLuca Boccassi <bluca@debian.org>
Tue, 3 Jan 2023 14:58:06 +0000 (15:58 +0100)
GCC-13 -std=gnu2x FTBS with:

error: incompatible type for argument 3 of ‘_hashmap_free’

src/basic/hashmap.c

index cdf7db612c8454166d4c216168f40077ae8275ea..322b148b313fee67f9d25422ecb68701bc20d528 100644 (file)
@@ -1753,7 +1753,7 @@ HashmapBase* _hashmap_copy(HashmapBase *h  HASHMAP_DEBUG_PARAMS) {
         }
 
         if (r < 0)
-                return _hashmap_free(copy, false, false);
+                return _hashmap_free(copy, NULL, NULL);
 
         return copy;
 }