various compiler warning fixes (bug #4483)
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 7 Jun 2005 16:59:20 +0000 (16:59 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 7 Jun 2005 16:59:20 +0000 (16:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5875 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_zapscan.c
channels/chan_sip.c
channels/chan_skinny.c

index a6480cb..0ce58bb 100755 (executable)
@@ -65,7 +65,6 @@ LOCAL_USER_DECL;
 #define CONF_SIZE 160
 
 static struct ast_channel *get_zap_channel_locked(int num) {
-       struct ast_channel *c=NULL;
        char name[80];
        
        snprintf(name,sizeof(name),"Zap/%d-1",num);
index 4dfc802..d99ac95 100755 (executable)
@@ -8162,6 +8162,7 @@ static void check_pendings(struct sip_pvt *p)
 /*--- 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 @@ static int handle_response_register(struct sip_pvt *p, int resp, char *rest, str
                        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 588b0b9..f70d61d 100755 (executable)
@@ -866,12 +866,12 @@ static struct skinny_device {
        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 @@ static int reload_config(void)
        char *cat;
        char iabuf[INET_ADDRSTRLEN];
        struct skinny_device *d;
-       struct skinny_paging_device *p;
        int oldport = ntohs(bindaddr.sin_port);
 
 #if 0