[Asterisk-cvs] asterisk/channels chan_h323.c,1.69,1.70
jeremy at lists.digium.com
jeremy at lists.digium.com
Thu Jul 22 00:38:50 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv28371
Modified Files:
chan_h323.c
Log Message:
clean up warnings, and re-add a return, how did that get removed?
Index: chan_h323.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_h323.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- chan_h323.c 20 Jul 2004 21:04:16 -0000 1.69
+++ chan_h323.c 22 Jul 2004 04:24:50 -0000 1.70
@@ -1251,9 +1251,10 @@
p = find_call(call_reference);
- if (!p)
+ if (!p) {
ast_log(LOG_ERROR, "Something is wrong: connection\n");
-
+ return;
+ }
if (!p->owner) {
ast_log(LOG_ERROR, "Channel has no owner\n");
@@ -1295,25 +1296,25 @@
void cleanup_call_details(call_details_t cd)
{
if (cd.call_token) {
- free((const char*)cd.call_token);
+ free(cd.call_token);
}
if (cd.call_source_aliases) {
- free((const char*)cd.call_source_aliases);
+ free(cd.call_source_aliases);
}
if (cd.call_dest_alias) {
- free((const char*)cd.call_dest_alias);
+ free(cd.call_dest_alias);
}
if (cd.call_source_name) {
- free((const char*)cd.call_source_name);
+ free(cd.call_source_name);
}
if (cd.call_source_e164) {
- free((const char*)cd.call_source_e164);
+ free(cd.call_source_e164);
}
if (cd.call_dest_e164) {
- free((const char*)cd.call_dest_e164);
+ free(cd.call_dest_e164);
}
if (cd.sourceIp) {
- free((const char*)cd.sourceIp);
+ free(cd.sourceIp);
}
}
More information about the svn-commits
mailing list