Commit fda1e268 authored by Kai Vehmanen's avatar Kai Vehmanen

Explicitly cast char pointers. Fixes build errors.

darcs-hash:20071119155432-77cd4-a3bce8695444e2a2bf96d139da66060f95e3cf95.gz
parent a2990af4
...@@ -498,10 +498,10 @@ int stun_verify_password (const uint8_t *msg, const char *pw) ...@@ -498,10 +498,10 @@ int stun_verify_password (const uint8_t *msg, const char *pw)
*/ */
int stun_verify_username (const uint8_t *msg, const char *local_ufrag) int stun_verify_username (const uint8_t *msg, const char *local_ufrag)
{ {
const uint8_t *username, *n; const char *username, *n;
uint16_t username_len; uint16_t username_len;
assert (msg != NULL); assert (msg != NULL);
username = stun_find (msg, STUN_USERNAME, &username_len); username = (const char *)stun_find (msg, STUN_USERNAME, &username_len);
if (username == NULL) if (username == NULL)
{ {
DBG ("STUN auth error: no USERNAME attribute!\n"); DBG ("STUN auth error: no USERNAME attribute!\n");
......
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