]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
sigh
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 Jun 2007 17:37:29 +0000 (17:37 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 18 Jun 2007 17:37:29 +0000 (17:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5388 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_stun.h

index b8c31f75e5bbf29dba8a0db7bfa88bacddbb190a..a4f2100996c7736b5dd281d3e127171b2ab17831 100644 (file)
@@ -106,12 +106,12 @@ typedef struct {
 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 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup(char **ip,
   \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