[Asterisk-cvs] asterisk/apps app_queue.c,1.153,1.154
russell at lists.digium.com
russell at lists.digium.com
Wed Jul 27 18:59:24 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv31677/apps
Modified Files:
app_queue.c
Log Message:
remove useless call to time() and an extra variable when we can just use the
one we already have
Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -d -r1.153 -r1.154
--- app_queue.c 27 Jul 2005 22:55:48 -0000 1.153
+++ app_queue.c 27 Jul 2005 23:05:52 -0000 1.154
@@ -1919,7 +1919,6 @@
ast_log(LOG_DEBUG, "%s is trying to call a queue member.\n",
qe->chan->name);
ast_copy_string(queuename, qe->parent->name, sizeof(queuename));
- time(&now);
cur = qe->parent->members;
if (!ast_strlen_zero(qe->announce))
announce = qe->announce;
@@ -2029,7 +2028,6 @@
if (!res2 && qe->parent->reportholdtime) {
if (!play_file(peer, qe->parent->sound_reporthold)) {
int holdtime;
- time_t now;
time(&now);
holdtime = abs((now - qe->start) / 60);
More information about the svn-commits
mailing list