summaryrefslogtreecommitdiff
path: root/src/shared/cgroup-util.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-04-18 09:11:22 +0200
committerHarald Hoyer <harald@redhat.com>2013-04-18 09:11:22 +0200
commit7fd1b19bc9e9f5574f2877936b8ac267c7706947 (patch)
treecac68de0832e4a61944e88390b649341519c43b2 /src/shared/cgroup-util.c
parentd70964d0f61f1add3a71c83beb925fc1fa2fab6b (diff)
move _cleanup_ attribute in front of the type
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
Diffstat (limited to 'src/shared/cgroup-util.c')
-rw-r--r--src/shared/cgroup-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c
index 0749b61154..5d44342bbe 100644
--- a/src/shared/cgroup-util.c
+++ b/src/shared/cgroup-util.c
@@ -1250,7 +1250,7 @@ int cg_path_get_unit(const char *path, char **unit) {
}
int cg_pid_get_unit(pid_t pid, char **unit) {
- char _cleanup_free_ *cgroup = NULL;
+ _cleanup_free_ char *cgroup = NULL;
int r;
assert(unit);
@@ -1306,7 +1306,7 @@ int cg_path_get_user_unit(const char *path, char **unit) {
}
int cg_pid_get_user_unit(pid_t pid, char **unit) {
- char _cleanup_free_ *cgroup = NULL;
+ _cleanup_free_ char *cgroup = NULL;
int r;
assert(unit);
@@ -1342,7 +1342,7 @@ int cg_path_get_machine_name(const char *path, char **machine) {
}
int cg_pid_get_machine_name(pid_t pid, char **machine) {
- char _cleanup_free_ *cgroup = NULL;
+ _cleanup_free_ char *cgroup = NULL;
int r;
assert(machine);
@@ -1386,7 +1386,7 @@ int cg_path_get_session(const char *path, char **session) {
}
int cg_pid_get_session(pid_t pid, char **session) {
- char _cleanup_free_ *cgroup = NULL;
+ _cleanup_free_ char *cgroup = NULL;
int r;
assert(session);