mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
remove useless code (bug #4492)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5885 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -658,18 +658,8 @@ static int retrans_pkt(void *data)
|
||||
{
|
||||
struct mgcp_gateway *gw = (struct mgcp_gateway *)data;
|
||||
struct mgcp_message *cur, *exq = NULL, *w, *prev;
|
||||
struct timeval tv;
|
||||
unsigned long t;
|
||||
int res = 0;
|
||||
|
||||
if (gettimeofday(&tv, NULL) < 0) {
|
||||
/* This shouldn't ever happen, but let's be sure */
|
||||
ast_log(LOG_NOTICE, "gettimeofday() failed!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
t = tv.tv_sec * 1000 + tv.tv_usec / 1000;
|
||||
|
||||
/* find out expired msgs */
|
||||
ast_mutex_lock(&gw->msgs_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user