Ensure that string field lengths are properly aligned
authorWalter Doekes <walter+asterisk@wjd.nu>
Wed, 2 Nov 2011 22:02:07 +0000 (22:02 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Wed, 2 Nov 2011 22:02:07 +0000 (22:02 +0000)
commit7fd2a68b0ecc0261e9090915dafcd65fee9cc6b8
treec30bd204b03e58ed781b196f344020fa6a7e8b14
parent55ffab4cd934e923cfe5c4fb1030325591b942fa
Ensure that string field lengths are properly aligned

Integers should always be aligned. For some platforms (ARM, SPARC) this
is more important than for others. This changeset ensures that the
string field string lengths are aligned on *all* platforms, not just on
the SPARC for which there was a workaround. It also fixes that the
length integer can be resized to 32 bits without problems if needed.

(closes issue ASTERISK-17310)
Reported by: radael, S Adrian
Reviewed by: Tzafrir Cohen, Terry Wilson
Tested by: S Adrian

Review: https://reviewboard.asterisk.org/r/1549
........

Merged revisions 343157 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 343158 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@343163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stringfields.h
include/asterisk/utils.h
main/utils.c