chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtnl: drop "sd_" prefix from cleanup macros
[elogind.git]
/
src
/
core
/
loopback-setup.c
diff --git
a/src/core/loopback-setup.c
b/src/core/loopback-setup.c
index 9058b6f1c12ae2a2465cf08fde5a59b160f383c4..e8c46306faa1d3a6f7b823e0f028b4b4ab734eac 100644
(file)
--- a/
src/core/loopback-setup.c
+++ b/
src/core/loopback-setup.c
@@
-48,7
+48,7
@@
static int pipe_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata) {
}
static int add_addresses(sd_rtnl *rtnl, int if_loopback, struct in_addr *ipv4_address, int *counter) {
}
static int add_addresses(sd_rtnl *rtnl, int if_loopback, struct in_addr *ipv4_address, int *counter) {
- _cleanup_
sd_
rtnl_message_unref_ sd_rtnl_message *ipv4 = NULL, *ipv6 = NULL;
+ _cleanup_rtnl_message_unref_ sd_rtnl_message *ipv4 = NULL, *ipv6 = NULL;
int r;
r = sd_rtnl_message_addr_new(RTM_NEWADDR, if_loopback, AF_INET, &ipv4);
int r;
r = sd_rtnl_message_addr_new(RTM_NEWADDR, if_loopback, AF_INET, &ipv4);
@@
-110,7
+110,7
@@
static int add_addresses(sd_rtnl *rtnl, int if_loopback, struct in_addr *ipv4_ad
}
static int start_interface(sd_rtnl *rtnl, int if_loopback, struct in_addr *ipv4_address, int *counter) {
}
static int start_interface(sd_rtnl *rtnl, int if_loopback, struct in_addr *ipv4_address, int *counter) {
- _cleanup_
sd_
rtnl_message_unref_ sd_rtnl_message *req = NULL;
+ _cleanup_rtnl_message_unref_ sd_rtnl_message *req = NULL;
int r;
r = sd_rtnl_message_link_new(RTM_SETLINK, if_loopback, &req);
int r;
r = sd_rtnl_message_link_new(RTM_SETLINK, if_loopback, &req);
@@
-157,7
+157,7
@@
static int check_loopback(void) {
}
int loopback_setup(void) {
}
int loopback_setup(void) {
- _cleanup_
sd_
rtnl_unref_ sd_rtnl *rtnl = NULL;
+ _cleanup_rtnl_unref_ sd_rtnl *rtnl = NULL;
int r, if_loopback, counter = 0;
bool eperm = false;
struct in_addr ipv4_address;
int r, if_loopback, counter = 0;
bool eperm = false;
struct in_addr ipv4_address;