Compile warning fixed in kernel interfaces.
authorTobias Brunner <tobias@strongswan.org>
Fri, 4 Nov 2011 08:58:58 +0000 (09:58 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Nov 2011 10:11:17 +0000 (11:11 +0100)
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c
src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c

index 772e520..ff7b40d 100644 (file)
@@ -485,7 +485,7 @@ static policy_sa_t *policy_sa_create(private_kernel_netlink_ipsec_t *this,
        }
        else
        {
-               INIT(policy);
+               INIT(policy, .priority = 0);
        }
        policy->type = type;
        policy->sa = ipsec_sa_create(this, src, dst, mark, cfg);
index 2bce606..d9327fc 100644 (file)
@@ -378,7 +378,7 @@ static policy_sa_t *policy_sa_create(private_kernel_pfkey_ipsec_t *this,
        }
        else
        {
-               INIT(policy);
+               INIT(policy, .priority = 0);
        }
        policy->type = type;
        policy->sa = ipsec_sa_create(this, src, dst, cfg);