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:
Kevin P. Fleming
2005-06-07 16:59:20 +00:00
parent 0db4cee117
commit 7584fac64b
3 changed files with 3 additions and 5 deletions

View File

@@ -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);

View File

@@ -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));

View File

@@ -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