[svn-commits] trunk r37285 - /trunk/rtp.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Jul 6 23:44:40 MST 2006
Author: russell
Date: Fri Jul 7 01:44:40 2006
New Revision: 37285
URL: http://svn.digium.com/view/asterisk?rev=37285&view=rev
Log:
resolve some pointer signedness warnings
Modified:
trunk/rtp.c
Modified: trunk/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/rtp.c?rev=37285&r1=37284&r2=37285&view=diff
==============================================================================
--- trunk/rtp.c (original)
+++ trunk/rtp.c Fri Jul 7 01:44:40 2006
@@ -302,8 +302,8 @@
}
struct stun_state {
- unsigned char *username;
- unsigned char *password;
+ const char *username;
+ const char *password;
};
static int stun_process_attr(struct stun_state *state, struct stun_attr *attr)
@@ -313,10 +313,10 @@
stun_attr2str(ntohs(attr->attr)), ntohs(attr->attr), ntohs(attr->len));
switch(ntohs(attr->attr)) {
case STUN_USERNAME:
- state->username = (unsigned char *)(attr->value);
+ state->username = (const char *) (attr->value);
break;
case STUN_PASSWORD:
- state->password = (unsigned char *)(attr->value);
+ state->password = (const char *) (attr->value);
break;
default:
if (stundebug)
@@ -455,7 +455,7 @@
case STUN_BINDREQ:
if (stundebug)
ast_verbose("STUN Bind Request, username: %s\n",
- st.username ? (const char *)st.username : "<none>");
+ st.username ? st.username : "<none>");
if (st.username)
append_attr_string(&attr, STUN_USERNAME, st.username, &resplen, &respleft);
append_attr_address(&attr, STUN_MAPPED_ADDRESS, src, &resplen, &respleft);
More information about the svn-commits
mailing list