summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-04-08 10:59:06 +0000
committerkib <kib@FreeBSD.org>2016-04-08 10:59:06 +0000
commit7dbfd5ad027d5eede9963cdaf6b072e4981ef62b (patch)
tree243382c3ca03ca7665824dc28a27d2697793b123 /lib
parent6ec3e5b2420d57ec774b63a0ae6f36acd527f525 (diff)
downloadFreeBSD-src-7dbfd5ad027d5eede9963cdaf6b072e4981ef62b.zip
FreeBSD-src-7dbfd5ad027d5eede9963cdaf6b072e4981ef62b.tar.gz
Use ANSI C function definitions, fix spelling in a comment.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_main_np.c4
-rw-r--r--lib/libthr/thread/thr_multi_np.c2
-rw-r--r--lib/libthr/thread/thr_single_np.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_main_np.c b/lib/libthr/thread/thr_main_np.c
index bfa8b87..f6244f3 100644
--- a/lib/libthr/thread/thr_main_np.c
+++ b/lib/libthr/thread/thr_main_np.c
@@ -37,10 +37,10 @@
__weak_reference(_pthread_main_np, pthread_main_np);
/*
- * Provide the equivelant to Solaris thr_main() function
+ * Provide the equivalent to Solaris thr_main() function.
*/
int
-_pthread_main_np()
+_pthread_main_np(void)
{
if (!_thr_initial)
diff --git a/lib/libthr/thread/thr_multi_np.c b/lib/libthr/thread/thr_multi_np.c
index 339a21d..013bdfa 100644
--- a/lib/libthr/thread/thr_multi_np.c
+++ b/lib/libthr/thread/thr_multi_np.c
@@ -37,7 +37,7 @@
__weak_reference(_pthread_multi_np, pthread_multi_np);
int
-_pthread_multi_np()
+_pthread_multi_np(void)
{
/* Return to multi-threaded scheduling mode: */
diff --git a/lib/libthr/thread/thr_single_np.c b/lib/libthr/thread/thr_single_np.c
index 81bdf8c..af0c32b 100644
--- a/lib/libthr/thread/thr_single_np.c
+++ b/lib/libthr/thread/thr_single_np.c
@@ -36,7 +36,8 @@
__weak_reference(_pthread_single_np, pthread_single_np);
-int _pthread_single_np()
+int
+_pthread_single_np(void)
{
/* Enter single-threaded (non-POSIX) scheduling mode: */
OpenPOWER on IntegriCloud