diff mbox

validation: In context test, make conditional acquire return a status

Message ID 20140201183335.GA9697@leaf (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Josh Triplett Feb. 1, 2014, 6:33 p.m. UTC
The context test defines and tests a __cond_lock mechanism similar to
the kernel, but then applies it to a function that returns void.  Change
that to int.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
 validation/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/validation/context.c b/validation/context.c
index 33b70b8..b9500dc 100644
--- a/validation/context.c
+++ b/validation/context.c
@@ -10,7 +10,7 @@  static void r(void) __attribute__((context(1,0)))
 	__context__(-1);
 }
 
-extern void _ca(int fail);
+extern int _ca(int fail);
 #define ca(fail) __cond_lock(_ca(fail))
 
 static void good_paired1(void)