[asterisk-commits] mvanbaak: trunk r170501 - /trunk/channels/chan_h323.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 23 11:46:02 CST 2009
Author: mvanbaak
Date: Fri Jan 23 11:46:02 2009
New Revision: 170501
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=170501
Log:
let's use SENTINEL where needed
Modified:
trunk/channels/chan_h323.c
Modified: trunk/channels/chan_h323.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_h323.c?view=diff&rev=170501&r1=170500&r2=170501
==============================================================================
--- trunk/channels/chan_h323.c (original)
+++ trunk/channels/chan_h323.c Fri Jan 23 11:46:02 2009
@@ -1224,7 +1224,7 @@
struct ast_variable *var, *tmp;
struct oh323_alias *a;
- var = ast_load_realtime("h323", "name", alias, NULL);
+ var = ast_load_realtime("h323", "name", alias, SENTINEL);
if (!var)
return NULL;
@@ -1438,10 +1438,10 @@
const char *username;
if (userbyalias)
- var = ast_load_realtime("h323", "name", username = cd->call_source_aliases, NULL);
+ var = ast_load_realtime("h323", "name", username = cd->call_source_aliases, SENTINEL);
else {
username = (char *)NULL;
- var = ast_load_realtime("h323", "host", cd->sourceIp, NULL);
+ var = ast_load_realtime("h323", "host", cd->sourceIp, SENTINEL);
}
if (!var)
@@ -1554,9 +1554,9 @@
/* First check on peer name */
if (peername)
- var = ast_load_realtime("h323", "name", peername, NULL);
+ var = ast_load_realtime("h323", "name", peername, SENTINEL);
else if (sin) /* Then check on IP address for dynamic peers */
- var = ast_load_realtime("h323", "host", addr = ast_inet_ntoa(sin->sin_addr), NULL);
+ var = ast_load_realtime("h323", "host", addr = ast_inet_ntoa(sin->sin_addr), SENTINEL);
else
return NULL;
More information about the asterisk-commits
mailing list