diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-16 10:44:04 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-16 10:44:04 +0000 |
commit | 8b42787b24549191ee7af71210b0d3ac9183a80c (patch) | |
tree | 249a4bc16955c96385aacc1433bef36557c1d1f3 /channels/chan_skinny.c | |
parent | 99b4cfd0e443f57b12cb461391659b251572e900 (diff) |
Sane FreeBSD patch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1635 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_skinny.c')
-rwxr-xr-x | channels/chan_skinny.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c index 4583814a7..ac3c4e784 100755 --- a/channels/chan_skinny.c +++ b/channels/chan_skinny.c @@ -863,6 +863,7 @@ static void transmit_tone(struct skinnysession *s, int tone) transmit_response(s, req); } +#if 0 static void transmit_selectsoftkeys(struct skinnysession *s, int instance, int callid, int softkey) { skinny_req *req; @@ -881,6 +882,7 @@ static void transmit_selectsoftkeys(struct skinnysession *s, int instance, int c req->data.selectsoftkey.softKeySetIndex = softkey; transmit_response(s, req); } +#endif static void transmit_lamp_indication(struct skinnysession *s, int instance, int indication) { @@ -2318,7 +2320,7 @@ static void *accept_thread(void *ignore) for (;;) { sinlen = sizeof(sin); - as = accept(skinnysock, &sin, &sinlen); + as = accept(skinnysock, (struct sockaddr *)&sin, &sinlen); if (as < 0) { ast_log(LOG_NOTICE, "Accept returned -1: %s\n", strerror(errno)); continue; @@ -2393,7 +2395,7 @@ static int restart_monitor(void) { /* If we're supposed to be stopped -- stay stopped */ - if (monitor_thread == -2) + if (monitor_thread == (pthread_t)-2) return 0; if (ast_mutex_lock(&monlock)) { ast_log(LOG_WARNING, "Unable to lock monitor\n"); |