chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move _cleanup_ attribute in front of the type
[elogind.git]
/
src
/
login
/
logind-seat-dbus.c
diff --git
a/src/login/logind-seat-dbus.c
b/src/login/logind-seat-dbus.c
index 82f25a0d1cfeb8694a94caf2f4958386d8204d19..5c535ba0ec41682fb743c7fb28eb8994983167de 100644
(file)
--- a/
src/login/logind-seat-dbus.c
+++ b/
src/login/logind-seat-dbus.c
@@
-61,7
+61,7
@@
static int bus_seat_append_active(DBusMessageIter *i, const char *property, void
DBusMessageIter sub;
Seat *s = data;
const char *id, *path;
DBusMessageIter sub;
Seat *s = data;
const char *id, *path;
-
char _cleanup_free_
*p = NULL;
+
_cleanup_free_ char
*p = NULL;
assert(i);
assert(property);
assert(i);
assert(property);
@@
-104,7
+104,7
@@
static int bus_seat_append_sessions(DBusMessageIter *i, const char *property, vo
return -ENOMEM;
LIST_FOREACH(sessions_by_seat, session, s->sessions) {
return -ENOMEM;
LIST_FOREACH(sessions_by_seat, session, s->sessions) {
-
char _cleanup_free_
*p = NULL;
+
_cleanup_free_ char
*p = NULL;
if (!dbus_message_iter_open_container(&sub, DBUS_TYPE_STRUCT, NULL, &sub2))
return -ENOMEM;
if (!dbus_message_iter_open_container(&sub, DBUS_TYPE_STRUCT, NULL, &sub2))
return -ENOMEM;
@@
-348,7
+348,7
@@
const DBusObjectPathVTable bus_seat_vtable = {
};
char *seat_bus_path(Seat *s) {
};
char *seat_bus_path(Seat *s) {
-
char _cleanup_free_
*t;
+
_cleanup_free_ char
*t;
assert(s);
assert(s);