mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 10:14:14 +00:00
windows compile another step closer
This commit is contained in:
1 parent
e35b087f51
commit
43eaa95746
8 files changed
+27
-16
No files matched your search
@@ -35,7 +35,9 @@
|
||||
//#define DEBUG_MISSED_SEQ
|
||||
|
||||
#include <switch.h>
|
||||
#ifndef _MSC_VER
|
||||
#include <switch_private.h>
|
||||
#endif
|
||||
#include <switch_stun.h>
|
||||
#include <apr_network_io.h>
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
#include <switch.h>
|
||||
#include <sofia-sip/sdp.h>
|
||||
|
||||
sdp_connection_t *sdp_media_connections(sdp_media_t const *m)
|
||||
|
||||
+4
-4
@@ -184,7 +184,7 @@ SWITCH_DECLARE(switch_stun_packet_t *) switch_stun_packet_parse(uint8_t *buf, ui
|
||||
attr->type = ntohs(attr->type);
|
||||
bytes_left -= 4; /* attribute header consumed */
|
||||
|
||||
if (switch_stun_attribute_padded_length(attr) > bytes_left) {
|
||||
if (switch_stun_attribute_padded_length(attr) > (int)bytes_left) {
|
||||
/*
|
||||
* Note we simply don't "break" here out of the loop anymore because
|
||||
* we don't want the upper layers to have to deal with attributes without a value
|
||||
@@ -583,7 +583,7 @@ SWITCH_DECLARE(uint8_t) switch_stun_packet_attribute_add_username(switch_stun_pa
|
||||
switch_stun_random_string(attribute->value, ulen, NULL);
|
||||
}
|
||||
|
||||
packet->header.length += htons(sizeof(switch_stun_packet_attribute_t) + padding) + attribute->length;
|
||||
packet->header.length += htons((u_short)(sizeof(switch_stun_packet_attribute_t) + padding)) + attribute->length;
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -607,7 +607,7 @@ SWITCH_DECLARE(uint8_t) switch_stun_packet_attribute_add_software(switch_stun_pa
|
||||
switch_stun_random_string(attribute->value, ulen, NULL);
|
||||
}
|
||||
|
||||
packet->header.length += htons(sizeof(switch_stun_packet_attribute_t) + padding) + attribute->length;
|
||||
packet->header.length += htons((u_short)(sizeof(switch_stun_packet_attribute_t) + padding)) + attribute->length;
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -631,7 +631,7 @@ SWITCH_DECLARE(uint8_t) switch_stun_packet_attribute_add_password(switch_stun_pa
|
||||
switch_stun_random_string(attribute->value, ulen, NULL);
|
||||
}
|
||||
|
||||
packet->header.length += htons(sizeof(switch_stun_packet_attribute_t) + padding) + attribute->length;
|
||||
packet->header.length += htons((u_short)(sizeof(switch_stun_packet_attribute_t) + padding)) + attribute->length;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user