From 40377d669ab3ccbc201f31ca38eeea88e779754b Mon Sep 17 00:00:00 2001 From: gatieme Date: Wed, 10 May 2017 22:56:36 +0800 Subject: [PATCH] =?UTF-8?q?init=5FMUTEX=E8=A2=AB=E5=BA=9F=E9=99=A4(?= =?UTF-8?q?=E8=A7=A3=E5=86=B3rror:=20implicit=20declaration=20of=20functio?= =?UTF-8?q?n=20=E2=80=98init=5FMUTEX=E2=80=99)--http://blog.csdn.net/gatie?= =?UTF-8?q?me/article/details/71598127?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- study/problem/port/init_MUTEX/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/study/problem/port/init_MUTEX/README.md b/study/problem/port/init_MUTEX/README.md index 92783f6..62ee79e 100644 --- a/study/problem/port/init_MUTEX/README.md +++ b/study/problem/port/init_MUTEX/README.md @@ -56,7 +56,7 @@ static inline void sema_init(struct semaphore *sem, int val) ```cpp #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 36) && !defined(init_MUTEX) - sema_init(&sem); + sema_init(&sem, 1); #else init_MUTEX(&sem); #endif