[Freeswitch-svn] [commit] r2204 - freeswitch/trunk/src/mod/endpoints/mod_exosip
Freeswitch SVN
anthm at freeswitch.org
Fri Jul 28 20:02:06 EDT 2006
Author: anthm
Date: Fri Jul 28 20:02:05 2006
New Revision: 2204
Modified:
freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
Log:
fix ambigious time_t crap
Modified: freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c Fri Jul 28 20:02:05 2006
@@ -2095,7 +2095,7 @@
char *errmsg;
switch_mutex_lock(globals.reg_mutex);
- snprintf(sql, sizeof(sql), "select url from sip_registrations where expires > 0 and expires < %ld", now);
+ snprintf(sql, sizeof(sql), "select url from sip_registrations where expires > 0 and expires < %" APR_TIME_T_FMT, now);
switch_core_db_exec(globals.db, sql, del_callback, NULL, &errmsg);
if (errmsg) {
@@ -2104,7 +2104,7 @@
errmsg = NULL;
}
- snprintf(sql, sizeof(sql), "delete from sip_registrations where expires > 0 and expires < %ld", now);
+ snprintf(sql, sizeof(sql), "delete from sip_registrations where expires > 0 and expires < %" APR_TIME_T_FMT, now);
switch_core_db_persistant_execute(globals.db, sql, 1);
switch_mutex_unlock(globals.reg_mutex);
}
More information about the Freeswitch-svn
mailing list