lkml.org 
[lkml]   [2013]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 05/11] liblockdep: correct the ABCDBCDA test
Date
There's no need to use liblockdep specific calls, they are wrapped for us.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
tools/lib/lockdep/tests/ABCDBCDA.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/lib/lockdep/tests/ABCDBCDA.c b/tools/lib/lockdep/tests/ABCDBCDA.c
index aadf11e..427ba56 100644
--- a/tools/lib/lockdep/tests/ABCDBCDA.c
+++ b/tools/lib/lockdep/tests/ABCDBCDA.c
@@ -3,12 +3,12 @@

void main(void)
{
- liblockdep_pthread_mutex_t a, b, c, d;
+ pthread_mutex_t a, b, c, d;

- liblockdep_pthread_mutex_init(&a, NULL);
- liblockdep_pthread_mutex_init(&b, NULL);
- liblockdep_pthread_mutex_init(&c, NULL);
- liblockdep_pthread_mutex_init(&d, NULL);
+ pthread_mutex_init(&a, NULL);
+ pthread_mutex_init(&b, NULL);
+ pthread_mutex_init(&c, NULL);
+ pthread_mutex_init(&d, NULL);

LOCK_UNLOCK_2(a, b);
LOCK_UNLOCK_2(c, d);
--
1.8.1.2


\
 
 \ /
  Last update: 2013-02-07 00:22    [W:0.108 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site