From 5b6e516dd1837d5b8365cc0d1b8b13cd3b7a8821 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 14 May 2007 09:26:03 +0000 Subject: [PATCH] porting. git-svn-id: file:///svn/unbound/trunk@315 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ util/data/packed_rrset.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index fe0bb47fd..f76fd4c6e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +14 May 2007: Wouter + - Port to OS/X and Dec Alpha. Printf format and alignment fixes. + 11 May 2007: Wouter - iterator/iterator.c module. - fixup to pass reply_info in testcode and in netevent. diff --git a/util/data/packed_rrset.h b/util/data/packed_rrset.h index 068ccf7aa..f5ced474c 100644 --- a/util/data/packed_rrset.h +++ b/util/data/packed_rrset.h @@ -159,8 +159,10 @@ enum rrset_trust { * memory layout: * o base struct * o rr_len size_t array - * o rr_ttl uint32_t array * o rr_data uint8_t* array + * o rr_ttl uint32_t array (after size_t and ptrs because those may be + * 64bit and this array before those would make them unaligned). + * Since the stuff before is 32/64bit, rr_ttl is 32 bit aligned. * o rr_data rdata wireformats * o rrsig_data rdata wireformat(s) * -- 2.47.2