chiark / gitweb /
Always use our own MAX/MIN definitions
[elogind.git] / src / shared / util.c
index b516b9b0532e5163593487e7fc7f6a1e41aa5029..46c20bec9c1c43456ad707d9b87c197fbc1ec4bb 100644 (file)
@@ -5862,7 +5862,7 @@ void* greedy_realloc(void **p, size_t *allocated, size_t need) {
         if (*allocated >= need)
                 return *p;
 
-        a = MAX(64, need * 2);
+        a = MAX(64u, need * 2);
         q = realloc(*p, a);
         if (!q)
                 return NULL;