From: Anthony Minessale Date: Fri, 7 Nov 2008 00:24:31 +0000 (+0000) Subject: move macro to the core X-Git-Tag: v1.0.2~617 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9557929408ca356f69aace0c6944c053ac69ae31;p=thirdparty%2Ffreeswitch.git move macro to the core git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10276 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index b910b404a8..99fbca0974 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -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 diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 14bd72e268..ed121aa154 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -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) {