chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / nss-myhostname / nss-myhostname.c
index 2dd3d4a57c541b5573ec15cec639d0d62a2faaa7..16ccb3ee39db42fe95c8da3609411bdb89c01d17 100644 (file)
@@ -379,7 +379,7 @@ enum nss_status _nss_myhostname_gethostbyaddr2_r(
                 int32_t *ttlp) {
 
         char hn[HOST_NAME_MAX+1] = {};
-        struct address _cleanup_free_ *addresses = NULL;
+        _cleanup_free_ struct address *addresses = NULL;
         struct address *a;
         unsigned n_addresses = 0, n;