X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Floopback-setup.c;fp=src%2Fcore%2Floopback-setup.c;h=e8c46306faa1d3a6f7b823e0f028b4b4ab734eac;hp=9058b6f1c12ae2a2465cf08fde5a59b160f383c4;hb=cf6a8911738fe2635a5210769d5348b05b166691;hpb=aa28aefe61c5406c5cb631f3e82457b6d1bcc967 diff --git a/src/core/loopback-setup.c b/src/core/loopback-setup.c index 9058b6f1c..e8c46306f 100644 --- 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) { - _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); @@ -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) { - _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); @@ -157,7 +157,7 @@ static int check_loopback(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;