[Freeswitch-svn] [commit] r10276 - in freeswitch/trunk/src: include mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Fri Nov 7 11:41:45 PST 2008


Author: anthm
Date: Thu Nov  6 19:24:31 2008
New Revision: 10276

Modified:
   freeswitch/trunk/src/include/switch_utils.h
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
move macro to the core

Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h	(original)
+++ freeswitch/trunk/src/include/switch_utils.h	Thu Nov  6 19:24:31 2008
@@ -404,6 +404,7 @@
   \return the epoch time in usec
 */
 SWITCH_DECLARE(switch_time_t) switch_str_time(const char *in);
+#define switch_time_from_sec(sec)   ((switch_time_t)(sec) * 1000000)
 
 /*!
   \brief Declares a function designed to set a dymaic global string

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Thu Nov  6 19:24:31 2008
@@ -1276,7 +1276,7 @@
 	switch_stream_handle_t *stream;
 };
 
-#define switch_time_from_sec(sec)   ((switch_time_t)(sec) * 1000000)
+
 
 static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNames)
 {



More information about the Freeswitch-svn mailing list