update asterisk-1.4.x to 1.4.25
[openwrt/svn-archive/archive.git] / net / asterisk-addons-1.4.x / patches / 031-pthread_param.patch
1 *** asterisk-addons-1.4.7/channels/ooh323c/src/ooCmdChannel.c.orig 2008-06-27 18:12:50.000000000 +0800
2 --- asterisk-addons-1.4.7/channels/ooh323c/src/ooCmdChannel.c 2008-06-27 18:12:11.000000000 +0800
3 ***************
4 *** 37,43 ****
5 if ((ret = pipe(thePipe)) == -1) {
6 return OO_FAILED;
7 }
8 ! pthread_mutex_init(&gCmdChanLock);
9
10 gH323ep.cmdSock = dup(thePipe[0]);
11 close(thePipe[0]);
12 --- 37,43 ----
13 if ((ret = pipe(thePipe)) == -1) {
14 return OO_FAILED;
15 }
16 ! pthread_mutex_init(&gCmdChanLock, NULL);
17
18 gH323ep.cmdSock = dup(thePipe[0]);
19 close(thePipe[0]);