]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
cast size_t to long for print as %ld.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 May 2017 12:19:35 +0000 (12:19 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 May 2017 12:19:35 +0000 (12:19 +0000)
git-svn-id: file:///svn/unbound/trunk@4164 be551aaa-1e26-0410-a405-d3ace91eadb9

ipsecmod/ipsecmod.c

index 2f5c19daefb894d4d52516e00cc434640331ca19..3bddc74255831bd24261b7d331a00fde9c70c2cc 100644 (file)
@@ -209,7 +209,7 @@ call_hook(struct module_qstate* qstate, struct ipsecmod_qstate* iq,
        sldns_str_print(&s, &slen, " ");
        /* Copy the IPSECKEY TTL into the buffer. */
        rrset_data = (struct packed_rrset_data*)iq->ipseckey_rrset->entry.data;
-       sldns_str_print(&s, &slen, "\"%ld\"", rrset_data->ttl);
+       sldns_str_print(&s, &slen, "\"%ld\"", (long)rrset_data->ttl);
        /* Put space into the buffer. */
        sldns_str_print(&s, &slen, " ");
        /* Copy the A/AAAA record(s) into the buffer. Start and end this section