]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move macro to the core
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Nov 2008 00:24:31 +0000 (00:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Nov 2008 00:24:31 +0000 (00:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10276 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_utils.h
src/mod/endpoints/mod_sofia/mod_sofia.c

index b910b404a85710cbba30e384d76ef612a2b1f841..99fbca0974a50dc102202aeb4c5106d126c5f003 100644 (file)
@@ -404,6 +404,7 @@ static inline switch_bool_t switch_strstr(char *s, char *q)
   \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
index 14bd72e268f03df6c41a7f5f2591bd61adbd5792..ed121aa15484ed6b37133419db6635d7d5feca8e 100644 (file)
@@ -1276,7 +1276,7 @@ struct cb_helper {
        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)
 {