From 45d9a3041404b6c6a1fb931cf7c1d38e5085e0b3 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Fri, 24 Jul 2015 13:49:11 +0200 Subject: tree-wide: do not use _cleanup_free_ on const pointers free() cannot be used with const pointers. However, our _cleanup_free_ handler features cast logic that hides that qualifier, so we don't get a warning. --- src/journal/journal-vacuum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal/journal-vacuum.c') diff --git a/src/journal/journal-vacuum.c b/src/journal/journal-vacuum.c index 81a577ea27..17499bbc30 100644 --- a/src/journal/journal-vacuum.c +++ b/src/journal/journal-vacuum.c @@ -72,7 +72,7 @@ static void patch_realtime( const struct stat *st, unsigned long long *realtime) { - _cleanup_free_ const char *path = NULL; + _cleanup_free_ char *path = NULL; usec_t x, crtime = 0; /* The timestamp was determined by the file name, but let's -- cgit v1.2.3-54-g00ecf