]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
OPENZAP-196 Fix casting issue - Apparently this fixes libpri BRI issues
authorMoises Silva <moy@sangoma.com>
Tue, 23 Oct 2012 17:00:16 +0000 (13:00 -0400)
committerMoises Silva <moy@sangoma.com>
Tue, 23 Oct 2012 17:00:16 +0000 (13:00 -0400)
libs/freetdm/src/ftmod/ftmod_libpri/lpwrap_pri.c

index 748b70a42fd424f395160a4650a0ece3b3e525cb..c9f0576951979061c20bc3c12fc996ca2324a772 100644 (file)
@@ -182,7 +182,7 @@ int lpwrap_init_pri(struct lpwrap_pri *spri, ftdm_span_t *span, ftdm_channel_t *
 
 
 #define timeval_to_ms(x) \
-       (((ftdm_time_t)(x)->tv_sec * 1000) + (ftdm_time_t)((x)->tv_usec / 1000))
+       (ftdm_time_t)(((x)->tv_sec * 1000) + ((x)->tv_usec / 1000))
 
 int lpwrap_start_timer(struct lpwrap_pri *spri, struct lpwrap_timer *timer, const uint32_t timeout_ms, timeout_handler callback)
 {