diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-04-03 18:38:37 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-04-03 18:38:37 +0000 |
commit | 81bd6022a7a2148e1e15c673864076746e9155e6 (patch) | |
tree | ef59618ca69feea7194e46c7392abcc10884484d /channels/chan_modem_i4l.c | |
parent | 43262aded51ebe1b604c70b5aa39d48ea59a50cf (diff) |
Version 0.1.8 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@263 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_modem_i4l.c')
-rwxr-xr-x | channels/chan_modem_i4l.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_modem_i4l.c b/channels/chan_modem_i4l.c index f1e521adf..ecb931b72 100755 --- a/channels/chan_modem_i4l.c +++ b/channels/chan_modem_i4l.c @@ -423,17 +423,17 @@ static char *i4l_identify(struct ast_modem_pvt *p) static void i4l_incusecnt() { - pthread_mutex_lock(&usecnt_lock); + ast_pthread_mutex_lock(&usecnt_lock); usecnt++; - pthread_mutex_unlock(&usecnt_lock); + ast_pthread_mutex_unlock(&usecnt_lock); ast_update_use_count(); } static void i4l_decusecnt() { - pthread_mutex_lock(&usecnt_lock); + ast_pthread_mutex_lock(&usecnt_lock); usecnt++; - pthread_mutex_unlock(&usecnt_lock); + ast_pthread_mutex_unlock(&usecnt_lock); ast_update_use_count(); } @@ -551,9 +551,9 @@ static struct ast_modem_driver i4l_driver = int usecount(void) { int res; - pthread_mutex_lock(&usecnt_lock); + ast_pthread_mutex_lock(&usecnt_lock); res = usecnt; - pthread_mutex_unlock(&usecnt_lock); + ast_pthread_mutex_unlock(&usecnt_lock); return res; } |