[asterisk-commits] oej: branch oej/codename-appleraisin-trunk r176700 - /team/oej/codename-apple...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 17 15:51:00 CST 2009


Author: oej
Date: Tue Feb 17 15:50:59 2009
New Revision: 176700

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176700
Log:
For mvanbaak

Modified:
    team/oej/codename-appleraisin-trunk/main/db.c

Modified: team/oej/codename-appleraisin-trunk/main/db.c
URL: http://svn.digium.com/svn-view/asterisk/team/oej/codename-appleraisin-trunk/main/db.c?view=diff&rev=176700&r1=176699&r2=176700
==============================================================================
--- team/oej/codename-appleraisin-trunk/main/db.c (original)
+++ team/oej/codename-appleraisin-trunk/main/db.c Tue Feb 17 15:50:59 2009
@@ -197,10 +197,10 @@
 		/* Now, the question here is if we're overwriting or adding 
 			First, let's try updating it.
 		*/
-		res = ast_update_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_name, fullkey, db_rt_value, value, NULL);
+		res = ast_update_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_name, fullkey, db_rt_value, value, SENTINEL);
 		if (!res) {
 			/* Update failed, let's try adding a new record */
-			res = ast_store_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_name, fullkey, db_rt_value, value, NULL);
+			res = ast_store_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_name, fullkey, db_rt_value, value, SENTINEL);
 		}
 	} else {
 		memset(&key, 0, sizeof(key));
@@ -238,7 +238,7 @@
 	if (db_rt) {
 		struct ast_variable *var;
 
-		var = ast_load_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_family, db_rt_name, fullkey, NULL);
+		var = ast_load_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_family, db_rt_name, fullkey, SENTINEL);
 		if (!var) {
 			res = 0;
 		} else {
@@ -296,7 +296,7 @@
 	
 	fullkeylen = snprintf(fullkey, sizeof(fullkey), "/%s/%s", family, keys);
 	if (db_rt) {
-		res = ast_destroy_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_family, db_rt_name, fullkey, NULL);
+		res = ast_destroy_realtime(db_rt_sysnamelabel, db_rt_sysname, db_rt_family, db_rt_name, fullkey, SENTINEL);
 	} else {
 		memset(&key, 0, sizeof(key));
 		key.data = fullkey;




More information about the asterisk-commits mailing list