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
/
shared
/
dbus-loop.c
diff --git
a/src/shared/dbus-loop.c
b/src/shared/dbus-loop.c
index fadbd439580425d4b045eb93592fa3255c112fd9..c5332422202955fb9c45d20d9bd7d7a5c9b79d3b 100644
(file)
--- a/
src/shared/dbus-loop.c
+++ b/
src/shared/dbus-loop.c
@@
-44,7
+44,7
@@
typedef struct EpollData {
} EpollData;
static dbus_bool_t add_watch(DBusWatch *watch, void *data) {
} EpollData;
static dbus_bool_t add_watch(DBusWatch *watch, void *data) {
-
EpollData _cleanup_free_
*e = NULL;
+
_cleanup_free_ EpollData
*e = NULL;
struct epoll_event ev = {};
assert(watch);
struct epoll_event ev = {};
assert(watch);
@@
-89,7
+89,7
@@
static dbus_bool_t add_watch(DBusWatch *watch, void *data) {
}
static void remove_watch(DBusWatch *watch, void *data) {
}
static void remove_watch(DBusWatch *watch, void *data) {
-
EpollData _cleanup_free_
*e = NULL;
+
_cleanup_free_ EpollData
*e = NULL;
assert(watch);
assert(watch);
@@
-175,7
+175,7
@@
fail:
}
static void remove_timeout(DBusTimeout *timeout, void *data) {
}
static void remove_timeout(DBusTimeout *timeout, void *data) {
-
EpollData _cleanup_free_
*e = NULL;
+
_cleanup_free_ EpollData
*e = NULL;
assert(timeout);
assert(timeout);