summaryrefslogtreecommitdiff
path: root/sysutils/pesign/files/patch-libdpe-lock.h
blob: 04f23d49c713bec37709269fb9558c4bc405632d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libdpe/lock.h.orig	2015-01-16 09:53:05.000000000 +0100
+++ libdpe/lock.h	2015-01-16 09:53:44.000000000 +0100
@@ -31,7 +31,7 @@
 #include <assert.h>
 #define rwlock_define(class,name)	class pthread_rwlock_t name
 #define RWLOCK_CALL(call) \
-	({ int _err = pthread_rwlock_ ## call; assert_perror(_err); })
+	({ int _err = pthread_rwlock_ ## call; assert(_err == 0); })
 #define rwlock_init(lock)	RWLOCK_CALL(init (&lock, NULL))
 #define rwlock_fini(lock)	RWLOCK_CALL(destroy (&lock))
 #define rwlock_rdlock(lock)	RWLOCK_CALL(rdlock (&lock))