[Freeswitch-svn] [commit] r5388 - freeswitch/trunk/src/include
Freeswitch SVN
anthm at freeswitch.org
Mon Jun 18 13:37:29 EDT 2007
Author: anthm
Date: Mon Jun 18 13:37:29 2007
New Revision: 5388
Modified:
freeswitch/trunk/src/include/switch_stun.h
Log:
sigh
Modified: freeswitch/trunk/src/include/switch_stun.h
==============================================================================
--- freeswitch/trunk/src/include/switch_stun.h (original)
+++ freeswitch/trunk/src/include/switch_stun.h Mon Jun 18 13:37:29 2007
@@ -106,12 +106,12 @@
typedef struct {
int16_t type;
uint16_t length;
- char value[1];
+ char value[];
} switch_stun_packet_attribute_t;
typedef struct {
switch_stun_packet_header_t header;
- uint8_t first_attribute[1];
+ uint8_t first_attribute[];
} switch_stun_packet_t;
typedef struct {
@@ -228,7 +228,7 @@
\param packet the packet in question
\return the size in bytes (host order) of the entire packet
*/
-#define switch_stun_packet_length(packet) ntohs(packet->header.length) + sizeof(switch_stun_packet_header_t)
+#define switch_stun_packet_length(packet) ntohs(packet->header.length) + (sizeof(switch_stun_packet_header_t))
///\}
SWITCH_END_EXTERN_C
More information about the Freeswitch-svn
mailing list