files: please syntax-check

* src/files.c (string_free): syntax-check does not want us to cast
arguments to free.
This commit is contained in:
Akim Demaille
2021-03-07 11:40:13 +01:00
parent e1caae6b48
commit 59a2053c83

View File

@@ -235,9 +235,10 @@ string_hash (const void *x)
} }
static void static void
string_free (const void *p) string_free (const void *cp)
{ {
free ((void*) p); void *p = (void*) cp;
free (p);
} }
const char * const char *