From cea6489e43e9756f93f025291154a65fc35aa12c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 19 Sep 2016 01:10:27 +0200 Subject: Make PTHREAD_ONCE_INIT a symbolic value as required by Posix * sysdeps/pthread/bits/once.h (__PTHREAD_ONCE_INIT): Cast initializer to (struct __pthread_once). --- sysdeps/pthread/bits/once.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/pthread') diff --git a/sysdeps/pthread/bits/once.h b/sysdeps/pthread/bits/once.h index 05895b9..53dbfd3 100644 --- a/sysdeps/pthread/bits/once.h +++ b/sysdeps/pthread/bits/once.h @@ -29,6 +29,6 @@ struct __pthread_once }; #define __PTHREAD_ONCE_INIT \ - { 0, __PTHREAD_SPIN_LOCK_INITIALIZER } + (struct __pthread_once) { 0, __PTHREAD_SPIN_LOCK_INITIALIZER } #endif /* bits/once.h */ -- cgit v1.2.3 From 73a04c4916f11e1f30aaca770ec1a2dbb78f7686 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 20 Sep 2016 22:48:54 +0200 Subject: Fix old-style function definitions * sysdeps/pthread/flockfile.c (__flockfile): Fix old-style function definition. * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise. * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise. --- sysdeps/pthread/flockfile.c | 3 +-- sysdeps/pthread/ftrylockfile.c | 3 +-- sysdeps/pthread/funlockfile.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'sysdeps/pthread') diff --git a/sysdeps/pthread/flockfile.c b/sysdeps/pthread/flockfile.c index 89e690d..749a11c 100644 --- a/sysdeps/pthread/flockfile.c +++ b/sysdeps/pthread/flockfile.c @@ -22,8 +22,7 @@ void -__flockfile (stream) - FILE *stream; +__flockfile (FILE *stream) { #ifdef SHARED __libc_ptf_call (_IO_flockfile, (stream), 0); diff --git a/sysdeps/pthread/ftrylockfile.c b/sysdeps/pthread/ftrylockfile.c index e8f8060..1ae6abc 100644 --- a/sysdeps/pthread/ftrylockfile.c +++ b/sysdeps/pthread/ftrylockfile.c @@ -23,8 +23,7 @@ int -__ftrylockfile (stream) - FILE *stream; +__ftrylockfile (FILE *stream) { #ifdef SHARED return __libc_ptf_call (_IO_ftrylockfile, (stream), 0); diff --git a/sysdeps/pthread/funlockfile.c b/sysdeps/pthread/funlockfile.c index 65201ed..8dda960 100644 --- a/sysdeps/pthread/funlockfile.c +++ b/sysdeps/pthread/funlockfile.c @@ -23,8 +23,7 @@ void -__funlockfile (stream) - FILE *stream; +__funlockfile (FILE *stream) { #ifdef SHARED __libc_ptf_call (_IO_funlockfile, (stream), 0); -- cgit v1.2.3