minor code fixes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeremy McNamara 2003-09-14 15:39:22 +00:00
parent d6f33f273d
commit 6be8c6b6bf
1 changed files with 6 additions and 6 deletions

View File

@ -1639,11 +1639,10 @@ static int skinny_fixup(struct ast_channel *oldchan, struct ast_channel *newchan
static int skinny_senddigit(struct ast_channel *ast, char digit)
{
// struct skinny_subchannel *sub = ast->pvt->pvt;
char tmp[2];
tmp[0] = digit;
tmp[1] = '\0';
// transmit_notify_request(sub, tmp);
struct skinny_subchannel *sub = ast->pvt->pvt;
// int tmp;
// sprintf(tmp, "%d", digit); // not right
// transmit_tone(sub->parent->parent->session, digit);
return -1;
}
@ -2139,6 +2138,7 @@ static int handle_message(skinny_req *req, struct skinnysession *s)
}
f.subclass = d;
f.src = "skinny";
sub = find_subchannel_by_line(s->device->lines);
if (sub->owner) {
@ -2473,7 +2473,7 @@ static int reload_config(void)
if (gethostname(ourhost, sizeof(ourhost))) {
ast_log(LOG_WARNING, "Unable to get hostname, Skinny disabled\n");
return 0;
return 1;
}
cfg = ast_load(config);