summaryrefslogtreecommitdiff
path: root/res/res_smdi.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2008-08-10 00:47:56 +0000
committerSean Bright <sean@malleable.com>2008-08-10 00:47:56 +0000
commit357bf3e90be71578e0b32303c41c5d29f2714c2b (patch)
tree912b2cba5df22fa3421e1a635d9da0d7e28e858a /res/res_smdi.c
parentb7571f835daf978b2f403efcd60a567ea218c8ec (diff)
All of the res/ stuff (other than res_jabber) from the RSW branch.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_smdi.c')
-rw-r--r--res/res_smdi.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c
index b6aa8024c..6a5cf1aa5 100644
--- a/res/res_smdi.c
+++ b/res/res_smdi.c
@@ -437,7 +437,7 @@ static void *smdi_message_wait(struct ast_smdi_interface *iface, int timeout,
while (diff < timeout) {
struct timespec ts = { 0, };
- struct timeval tv;
+ struct timeval wait;
lock_msg_q(iface, type);
@@ -446,9 +446,9 @@ static void *smdi_message_wait(struct ast_smdi_interface *iface, int timeout,
return msg;
}
- tv = ast_tvadd(start, ast_tv(0, timeout));
- ts.tv_sec = tv.tv_sec;
- ts.tv_nsec = tv.tv_usec * 1000;
+ wait = ast_tvadd(start, ast_tv(0, timeout));
+ ts.tv_sec = wait.tv_sec;
+ ts.tv_nsec = wait.tv_usec * 1000;
/* If there were no messages in the queue, then go to sleep until one
* arrives. */
@@ -778,7 +778,7 @@ static void *mwi_monitor_handler(void *data)
{
while (!mwi_monitor.stop) {
struct timespec ts = { 0, };
- struct timeval tv;
+ struct timeval polltime;
struct mailbox_mapping *mm;
ast_mutex_lock(&mwi_monitor.lock);
@@ -790,9 +790,9 @@ static void *mwi_monitor_handler(void *data)
/* Sleep up to the configured polling interval. Allow unload_module()
* to signal us to wake up and exit. */
- tv = ast_tvadd(mwi_monitor.last_poll, ast_tv(mwi_monitor.polling_interval, 0));
- ts.tv_sec = tv.tv_sec;
- ts.tv_nsec = tv.tv_usec * 1000;
+ polltime = ast_tvadd(mwi_monitor.last_poll, ast_tv(mwi_monitor.polling_interval, 0));
+ ts.tv_sec = polltime.tv_sec;
+ ts.tv_nsec = polltime.tv_usec * 1000;
ast_cond_timedwait(&mwi_monitor.cond, &mwi_monitor.lock, &ts);
ast_mutex_unlock(&mwi_monitor.lock);