summaryrefslogtreecommitdiffstats
path: root/lib/librthread/rthread.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-02-18 22:03:21 +0000
committerguenther <guenther@openbsd.org>2012-02-18 22:03:21 +0000
commit8e28ab97fd7930e110b799fb1e8c13d8c09dbbf2 (patch)
tree51ae955d588a46489fa8085823700824668ca8b9 /lib/librthread/rthread.c
parentBefore using _thread_pagesize, make sure _rthread_init() has been called (diff)
downloadwireguard-openbsd-8e28ab97fd7930e110b799fb1e8c13d8c09dbbf2.tar.xz
wireguard-openbsd-8e28ab97fd7930e110b799fb1e8c13d8c09dbbf2.zip
Fix previous commit: _rthread_init() was static.
Improve consistency of error naming
Diffstat (limited to 'lib/librthread/rthread.c')
-rw-r--r--lib/librthread/rthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c
index a7d29402220..65d5c6a0f32 100644
--- a/lib/librthread/rthread.c
+++ b/lib/librthread/rthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.c,v 1.52 2012/02/18 21:12:09 guenther Exp $ */
+/* $OpenBSD: rthread.c,v 1.53 2012/02/18 22:03:21 guenther Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -144,7 +144,7 @@ sigthr_handler(__unused int sig)
pthread_exit(PTHREAD_CANCELED);
}
-static int
+int
_rthread_init(void)
{
pthread_t thread = &_initial_thread;