svn commit: r297704 - head/lib/libthr/thread
Konstantin Belousov
kib at FreeBSD.org
Fri Apr 8 10:59:08 UTC 2016
Author: kib
Date: Fri Apr 8 10:59:06 2016
New Revision: 297704
URL: https://svnweb.freebsd.org/changeset/base/297704
Log:
Use ANSI C function definitions, fix spelling in a comment.
Sponsored by: The FreeBSD Foundation
Modified:
head/lib/libthr/thread/thr_main_np.c
head/lib/libthr/thread/thr_multi_np.c
head/lib/libthr/thread/thr_single_np.c
Modified: head/lib/libthr/thread/thr_main_np.c
==============================================================================
--- head/lib/libthr/thread/thr_main_np.c Fri Apr 8 10:54:59 2016 (r297703)
+++ head/lib/libthr/thread/thr_main_np.c Fri Apr 8 10:59:06 2016 (r297704)
@@ -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)
Modified: head/lib/libthr/thread/thr_multi_np.c
==============================================================================
--- head/lib/libthr/thread/thr_multi_np.c Fri Apr 8 10:54:59 2016 (r297703)
+++ head/lib/libthr/thread/thr_multi_np.c Fri Apr 8 10:59:06 2016 (r297704)
@@ -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: */
Modified: head/lib/libthr/thread/thr_single_np.c
==============================================================================
--- head/lib/libthr/thread/thr_single_np.c Fri Apr 8 10:54:59 2016 (r297703)
+++ head/lib/libthr/thread/thr_single_np.c Fri Apr 8 10:59:06 2016 (r297704)
@@ -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: */
More information about the svn-src-head
mailing list