From 9d880dd2b29adfd15d9b09f4bf7f1f2a8b38cef8 Mon Sep 17 00:00:00 2001 From: Russell Bryant <russell@russellbryant.com> Date: Wed, 27 Jul 2005 23:05:52 +0000 Subject: [PATCH] remove useless call to time() and an extra variable when we can just use the one we already have git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6239 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/app_queue.c b/apps/app_queue.c index 8553f6d6c0..fa4b8ffae6 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); -- GitLab