Module: sip-router
Branch: master
Commit: 81d3eebd51089686949ab22da60166d4f3a460a7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=81d3eeb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue May 7 19:15:36 2013 +0200
core: get rid of deferencing type-punned warning in deb wheezy
- reported by Victor Seva
---
cfg/cfg_struct.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cfg/cfg_struct.c b/cfg/cfg_struct.c
index c2e6520..13c3c23 100644
--- a/cfg/cfg_struct.c
+++ b/cfg/cfg_struct.c
@@ -1035,6 +1035,7 @@ static int apply_add_var_list(cfg_block_t *block, cfg_group_t
*group)
unsigned int group_id;
cfg_add_var_t *add_var;
cfg_group_inst_t *new_array, *ginst;
+ cfg_group_meta_t *gm;
/* count the number of group instances */
for ( add_var = group->add_var, num = 0, group_id = 0;
@@ -1088,8 +1089,9 @@ static int apply_add_var_list(cfg_block_t *block, cfg_group_t
*group)
}
#endif
- CFG_GROUP_META(block, group)->num = num;
- CFG_GROUP_META(block, group)->array = new_array;
+ gm = CFG_GROUP_META(block, group);
+ gm->num = num;
+ gm->array = new_array;
return 0;
error: