[Freeswitch-svn] [commit] r11933 - freeswitch/trunk/src/mod/applications/mod_limit

FreeSWITCH SVN mrene at freeswitch.org
Thu Feb 12 12:56:59 PST 2009


Author: mrene
Date: Thu Feb 12 14:56:59 2009
New Revision: 11933

Log:
s/^assert/switch_assert/

Modified:
   freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c

Modified: freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c	Thu Feb 12 14:56:59 2009
@@ -391,13 +391,13 @@
 			goto error;
 		}
 		sql = switch_mprintf("delete from db_data where realm='%q' and data_key='%q'", argv[1], argv[2]);
-		assert(sql);
+		switch_assert(sql);
 		limit_execute_sql(sql, NULL);
 		switch_safe_free(sql);
 		sql =
 			switch_mprintf("insert into db_data (hostname, realm, data_key, data) values('%q','%q','%q','%q');", globals.hostname, argv[1], argv[2],
 						   argv[3]);
-		assert(sql);
+		switch_assert(sql);
 		limit_execute_sql(sql, NULL);
 		switch_safe_free(sql);
 		stream->write_function(stream, "+OK");
@@ -407,7 +407,7 @@
 			goto error;
 		}
 		sql = switch_mprintf("delete from db_data where realm='%q' and data_key='%q'", argv[1], argv[2]);
-		assert(sql);
+		switch_assert(sql);
 		limit_execute_sql(sql, NULL);
 		switch_safe_free(sql);
 		stream->write_function(stream, "+OK");
@@ -609,12 +609,12 @@
 			goto error;
 		}
 		sql = switch_mprintf("delete from group_data where groupname='%q' and url='%q';", argv[1], argv[2]);
-		assert(sql);
+		switch_assert(sql);
 
 		limit_execute_sql(sql, NULL);
 		switch_safe_free(sql);
 		sql = switch_mprintf("insert into group_data (hostname, groupname, url) values('%q','%q','%q');", globals.hostname, argv[1], argv[2]);
-		assert(sql);
+		switch_assert(sql);
 		limit_execute_sql(sql, NULL);
 		switch_safe_free(sql);
 		stream->write_function(stream, "+OK");
@@ -628,7 +628,7 @@
 		} else {
 			sql = switch_mprintf("delete from group_data where groupname='%q' and url='%q';", argv[1], argv[2]);
 		}
-		assert(sql);
+		switch_assert(sql);
 		limit_execute_sql(sql, NULL);
 		switch_safe_free(sql);
 		stream->write_function(stream, "+OK");
@@ -647,7 +647,7 @@
 		}
 
 		sql = switch_mprintf("select url,'%q' from group_data where groupname='%q'", how, argv[1]);
-		assert(sql);
+		switch_assert(sql);
 
 		limit_execute_sql_callback(NULL, sql, group_callback, &cbt);
 		switch_safe_free(sql);
@@ -690,12 +690,12 @@
 
 	if (!strcasecmp(argv[0], "insert")) {
 		sql = switch_mprintf("insert into group_data (hostname, groupname, url) values('%q','%q','%q');", globals.hostname, argv[1], argv[2]);
-		assert(sql);
+		switch_assert(sql);
 		limit_execute_sql(sql, globals.mutex);
 		switch_safe_free(sql);
 	} else if (!strcasecmp(argv[0], "delete")) {
 		sql = switch_mprintf("delete from group_data where groupname='%q' and url='%q';", argv[1], argv[2]);
-		assert(sql);
+		switch_assert(sql);
 		limit_execute_sql(sql, globals.mutex);
 		switch_safe_free(sql);
 	}



More information about the Freeswitch-svn mailing list