[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.125,1.126

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 9 16:41:47 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv31568/channels

Modified Files:
	chan_mgcp.c 
Log Message:
remove useless code (bug #4492)


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- chan_mgcp.c	7 Jun 2005 17:06:33 -0000	1.125
+++ chan_mgcp.c	9 Jun 2005 20:43:54 -0000	1.126
@@ -658,18 +658,8 @@
 {
 	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);
 




More information about the svn-commits mailing list