[Asterisk-cvs] asterisk/channels chan_sip.c, 1.755, 1.756 chan_skinny.c, 1.79, 1.80

kpfleming at lists.digium.com kpfleming at lists.digium.com
Tue Jun 7 12:57:00 CDT 2005


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

Modified Files:
	chan_sip.c chan_skinny.c 
Log Message:
various compiler warning fixes (bug #4483)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.755
retrieving revision 1.756
diff -u -d -r1.755 -r1.756
--- chan_sip.c	6 Jun 2005 22:12:19 -0000	1.755
+++ chan_sip.c	7 Jun 2005 16:59:20 -0000	1.756
@@ -8162,6 +8162,7 @@
 /*--- handle_response_register: Handle responses on REGISTER to services ---*/
 static int handle_response_register(struct sip_pvt *p, int resp, char *rest, struct sip_request *req, int ignore, int seqno)
 {
+	int expires, expires_ms;
 	struct sip_registry *r;
 	r=p->registry;
 
@@ -8204,7 +8205,6 @@
 			ast_set_flag(p, SIP_NEEDDESTROY);	
 			return 0;
 		}
-		int expires, expires_ms;
 
 		r->regstate=REG_STATE_REGISTERED;
 		manager_event(EVENT_FLAG_SYSTEM, "Registry", "Channel: SIP\r\nDomain: %s\r\nStatus: %s\r\n", r->hostname, regstate2str(r->regstate));

Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- chan_skinny.c	6 Jun 2005 22:12:19 -0000	1.79
+++ chan_skinny.c	7 Jun 2005 16:59:20 -0000	1.80
@@ -866,12 +866,12 @@
 	struct skinny_device *next;
 } *devices = NULL;
 
-static struct skinny_paging_device {
+struct skinny_paging_device {
 	char name[80];
 	char id[16];
 	struct skinny_device ** devices;
 	struct skinny_paging_device *next;
-} *paging_devices = NULL;
+};
 
 static struct skinnysession {
 	pthread_t t;
@@ -3118,7 +3118,6 @@
 	char *cat;
 	char iabuf[INET_ADDRSTRLEN];
 	struct skinny_device *d;
-	struct skinny_paging_device *p;
 	int oldport = ntohs(bindaddr.sin_port);
 
 #if 0		




More information about the svn-commits mailing list