diff options
author | Daniel Mack <daniel@zonque.org> | 2015-07-24 13:49:11 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-07-24 13:52:30 +0200 |
commit | 45d9a3041404b6c6a1fb931cf7c1d38e5085e0b3 (patch) | |
tree | aff4404919ac843c97b611102a85ab4858a2be68 /src/udev | |
parent | 95cdf5e3a938ac54d7e9c31276a5acf08347fa9f (diff) |
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.
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udev-builtin-hwdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c index b656204c46..72109d93d2 100644 --- a/src/udev/udev-builtin-hwdb.c +++ b/src/udev/udev-builtin-hwdb.c @@ -33,7 +33,7 @@ static sd_hwdb *hwdb; int udev_builtin_hwdb_lookup(struct udev_device *dev, const char *prefix, const char *modalias, const char *filter, bool test) { - _cleanup_free_ const char *lookup = NULL; + _cleanup_free_ char *lookup = NULL; const char *key, *value; int n = 0; |