summaryrefslogtreecommitdiff
path: root/res/res_calendar.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2011-05-03 20:45:32 +0000
committerRussell Bryant <russell@russellbryant.com>2011-05-03 20:45:32 +0000
commit37aa52fd78996b5c516ff4c851b60252eda84b05 (patch)
treee1651180838e594a0203f863f3cdd084860e1bf5 /res/res_calendar.c
parent810b9c887949fc4bd9f01dcdc0d3a4f476cb00de (diff)
Merged revisions 316265 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r316265 | russell | 2011-05-03 14:55:49 -0500 (Tue, 03 May 2011) | 5 lines Fix a bunch of compiler warnings generated by gcc 4.6.0. Most of these are -Wunused-but-set-variable, but there were a few others mixed in here, as well. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@316293 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_calendar.c')
-rw-r--r--res/res_calendar.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/res/res_calendar.c b/res/res_calendar.c
index 29fc70627..f03a5b8c7 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -1706,7 +1706,7 @@ static void *do_refresh(void *data)
for (;;) {
struct timeval now = ast_tvnow();
struct timespec ts = {0,};
- int res, wait;
+ int wait;
ast_mutex_lock(&refreshlock);
@@ -1715,7 +1715,7 @@ static void *do_refresh(void *data)
}
ts.tv_sec = (now.tv_sec + wait / 1000) + 1;
- res = ast_cond_timedwait(&refresh_condition, &refreshlock, &ts);
+ ast_cond_timedwait(&refresh_condition, &refreshlock, &ts);
ast_mutex_unlock(&refreshlock);
@@ -1742,10 +1742,9 @@ static int unload_module(void)
ao2_callback(calendars, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);
AST_LIST_LOCK(&techs);
- AST_LIST_TRAVERSE_SAFE_BEGIN(&techs, tech, list) {
+ AST_LIST_TRAVERSE(&techs, tech, list) {
ast_unload_resource(tech->module, 0);
}
- AST_LIST_TRAVERSE_SAFE_END;
AST_LIST_UNLOCK(&techs);
return 0;