aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-27 23:05:52 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-27 23:05:52 +0000
commitd39bde093f0032a35c53ef1fa4364e52af8616b2 (patch)
tree8696c570c4ece92c145808cbfd836346ab95516d /apps
parent062f81f55d42feb249138d989c7d4d2337e3d42c (diff)
remove useless call to time() and an extra variable when we can just use the
one we already have git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6239 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_queue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 8553f6d6c..fa4b8ffae 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1919,7 +1919,6 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
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 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
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);