summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-07-24 14:01:10 +0200
committerDaniel Mack <github@zonque.org>2015-07-24 14:01:10 +0200
commit6cb22db3307d09803cd946763d9fbd60ea5b6664 (patch)
treeaff4404919ac843c97b611102a85ab4858a2be68 /src
parent95cdf5e3a938ac54d7e9c31276a5acf08347fa9f (diff)
parent45d9a3041404b6c6a1fb931cf7c1d38e5085e0b3 (diff)
Merge pull request #711 from zonque/const
tree-wide: do not use _cleanup_free_ on const pointers
Diffstat (limited to 'src')
-rw-r--r--src/import/pull-dkr.c2
-rw-r--r--src/journal/journal-vacuum.c2
-rw-r--r--src/udev/udev-builtin-hwdb.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/import/pull-dkr.c b/src/import/pull-dkr.c
index 78e3184c42..67ca1ce8e4 100644
--- a/src/import/pull-dkr.c
+++ b/src/import/pull-dkr.c
@@ -793,7 +793,7 @@ static void dkr_pull_job_on_finished_v2(PullJob *j) {
} else if (i->tags_job == j) {
const char *url;
- _cleanup_free_ const char *buf;
+ _cleanup_free_ char *buf;
_cleanup_json_variant_unref_ JsonVariant *doc = NULL;
JsonVariant *e = NULL;
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
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;