Commit 5eb55e8d authored by Kai Vehmanen's avatar Kai Vehmanen

Removed unused code from STUN module.

darcs-hash:20060711185107-7659e-56ac4d4d43f250729940c7cfd5ed8ebdfc4d50f1.gz
parent ee961a43
......@@ -111,10 +111,8 @@ int stun_parse_message(stun_msg_t *msg)
return 0;
}
#if 1
int stun_parse_attribute(stun_msg_t *msg, unsigned char *p) {
int stun_parse_attribute(stun_msg_t *msg, unsigned char *p)
{
int len;
uint16_t attr_type;
stun_attr_t *attr, *next;
......@@ -197,16 +195,6 @@ int stun_parse_attribute(stun_msg_t *msg, unsigned char *p) {
return len+4;
}
#else
int stun_parse_attribute(stun_msg_t *msg, unsigned char *p) {
attr = (stun_attr_t *)calloc(1, sizeof(stun_attr_t));
if (!attr)
return -1;
return stun_parse_attr_any(attr, type, len, p);
}
#endif
int stun_parse_attr_address(stun_attr_t *attr,
const unsigned char *p,
unsigned len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment