Add a cast to SET_ADDRESS() to squelch GCC4 "differ in signedness"
warnings. Use SET_ADDRESS in the VOIP calls code, rather than explicitly filling in "pstn_add". svn path=/trunk/; revision=14867
This commit is contained in:
parent
2465355c7b
commit
e2d750eab5
|
@ -57,7 +57,7 @@ typedef struct _address {
|
|||
#define SET_ADDRESS(addr, addr_type, addr_len, addr_data) { \
|
||||
(addr)->type = (addr_type); \
|
||||
(addr)->len = (addr_len); \
|
||||
(addr)->data = (addr_data); \
|
||||
(addr)->data = (void *)(addr_data); \
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1311,9 +1311,7 @@ q931_calls_packet(void *ptr _U_, packet_info *pinfo, epan_dissect_t *edt _U_, co
|
|||
list = g_list_next (list);
|
||||
}
|
||||
|
||||
pstn_add.type = AT_STRINGZ;
|
||||
pstn_add.len = 5;
|
||||
pstn_add.data = g_strdup("PSTN");
|
||||
SET_ADDRESS(&pstn_add, AT_STRINGZ, 5, g_strdup("PSTN"));
|
||||
|
||||
/* if it is a new call, add it to the list */
|
||||
if (!strinfo) {
|
||||
|
@ -2367,9 +2365,7 @@ ACTRACEcalls_packet(void *ptr _U_, packet_info *pinfo, epan_dissect_t *edt _U_,
|
|||
list = g_list_next (list);
|
||||
}
|
||||
|
||||
pstn_add.type = AT_STRINGZ;
|
||||
pstn_add.len = 5;
|
||||
pstn_add.data = g_strdup("PSTN");
|
||||
SET_ADDRESS(&pstn_add, AT_STRINGZ, 5, g_strdup("PSTN"));
|
||||
|
||||
/* if it is a new call, add it to the list */
|
||||
if (!strinfo) {
|
||||
|
|
Loading…
Reference in New Issue