Commit 394e6da07371e6a4a5ef6e5b2b5c7a4f13faec7c

Thomas de Grivel 2023-07-10T15:37:16

wip

diff --git a/libc3/facts.c b/libc3/facts.c
index 65fb3d7..fee9bff 100644
--- a/libc3/facts.c
+++ b/libc3/facts.c
@@ -366,7 +366,7 @@ void facts_lock_unlock_r (s_facts *facts)
 {
   assert(facts);
   if (pthread_rwlock_unlock(&facts->rwlock))
-    errx(1, "facts_lock_unlock_r: pthread_rwlock_unlock");
+    err(1, "facts_lock_unlock_r: pthread_rwlock_unlock");
 }
 
 void facts_lock_unlock_w (s_facts *facts)
@@ -376,7 +376,7 @@ void facts_lock_unlock_w (s_facts *facts)
   if (! facts->rwlock_count) {
     facts->rwlock_thread = NULL;
     if (pthread_rwlock_unlock(&facts->rwlock))
-      errx(1, "facts_lock_unlock_w: pthread_rwlock_unlock");
+      err(1, "facts_lock_unlock_w: pthread_rwlock_unlock");
   }
 }