let sip have stun and make suncc happy

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1054 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-04-05 22:46:50 +00:00
parent df621b1a84
commit 650ae09f06
4 changed files with 87 additions and 21 deletions
+2 -2
View File
@@ -110,7 +110,7 @@ typedef struct {
typedef struct {
switch_stun_packet_header_t header;
switch_stun_packet_attribute_t first_attribute;
uint8_t first_attribute[];
} switch_stun_packet_t;
typedef struct {
@@ -218,7 +218,7 @@ SWITCH_DECLARE(switch_status) switch_stun_lookup (char **ip,
\param packet the packet in question
\param attribute the pointer to set up
*/
#define switch_stun_packet_first_attribute(packet, attribute) attribute = &packet->first_attribute;
#define switch_stun_packet_first_attribute(packet, attribute) attribute = (switch_stun_packet_attribute_t *)(&packet->first_attribute);
/*!
\brief Increment an attribute pointer to the next attribute in it's packet