1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00

Merge pull request #711 from zonque/const

tree-wide: do not use _cleanup_free_ on const pointers
This commit is contained in:
Daniel Mack 2015-07-24 14:01:10 +02:00
commit 6cb22db330
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;