mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
various compiler warning fixes (bug #4483)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user