fix big endian compilation issue

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2005-07-13 19:21:04 +00:00
parent aaa057778c
commit f62a613d24
1 changed files with 21 additions and 18 deletions

View File

@ -497,24 +497,24 @@ typedef struct soft_key_template_definition {
} soft_key_template_definition;
soft_key_template_definition soft_key_template_default[] = {
{ "Redial", htolel(1) },
{ "NewCall", htolel(2) },
{ "Hold", htolel(3) },
{ "Trnsfer", htolel(4) },
{ "CFwdAll", htolel(5) },
{ "CFwdBusy", htolel(6) },
{ "CFwdNoAnswer", htolel(7) },
{ "<<", htolel(8) },
{ "EndCall", htolel(9) },
{ "Resume", htolel(10) },
{ "Answer", htolel(11) },
{ "Info", htolel(12) },
{ "Confrn", htolel(13) },
{ "Park", htolel(14) },
{ "Join", htolel(15) },
{ "MeetMe", htolel(16) },
{ "PickUp", htolel(17) },
{ "GPickUp", htolel(18) }
{ "Redial", 1 },
{ "NewCall", 2 },
{ "Hold", 3 },
{ "Trnsfer", 4 },
{ "CFwdAll", 5 },
{ "CFwdBusy", 6 },
{ "CFwdNoAnswer", 7 },
{ "<<", 8 },
{ "EndCall", 9 },
{ "Resume", 10 },
{ "Answer", 11 },
{ "Info", 12 },
{ "Confrn", 13 },
{ "Park", 14 },
{ "Join", 15 },
{ "MeetMe", 16 },
{ "PickUp", 17 },
{ "GPickUp", 18 },
};
typedef struct soft_key_template {
@ -3301,6 +3301,9 @@ int load_module()
{
int res = 0;
for (; res < (sizeof(soft_key_template_default) / sizeof(soft_key_template_default[0])); res++)
soft_key_template_default[res].softKeyEvent = htolel(soft_key_template_default[res].softKeyEvent);
/* load and parse config */
res = reload_config();