diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-12-13 14:19:28 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-01-11 20:58:36 +0100 |
| commit | 850f46e7df4f096dd073bafbad9eba219707dda5 (patch) | |
| tree | 63a14efb7d88bb7a498db52095a3c0cd9a68dd72 | |
| parent | c18816ffef561732c7958584eb52b21b3ee2c538 (diff) | |
| download | man-pages-850f46e7df4f096dd073bafbad9eba219707dda5.tar.gz | |
man/man3/: SYNOPSIS: Use typeof() to improve readability of function pointer types
Due to different spacing, I had missed these ones in the previous
commits of this kind.
Suggested-by: Jorenar <dev@jorenar.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
| -rw-r--r-- | man/man3/pthread_key_create.3 | 2 | ||||
| -rw-r--r-- | man/man3/pthread_once.3 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/man/man3/pthread_key_create.3 b/man/man3/pthread_key_create.3 index 966e5a24af..78266bb689 100644 --- a/man/man3/pthread_key_create.3 +++ b/man/man3/pthread_key_create.3 @@ -20,7 +20,7 @@ management of thread-specific data .B #include <pthread.h> .P .BI "int pthread_key_create(pthread_key_t *" key , -.BI " void (*" destr_function ") (void *));" +.BI " typeof(void (void *)) *" destr_function ; .BI "int pthread_key_delete(pthread_key_t " key ); .BI "int pthread_setspecific(pthread_key_t " key ", const void *" pointer ); .BI "void * pthread_getspecific(pthread_key_t " key ); diff --git a/man/man3/pthread_once.3 b/man/man3/pthread_once.3 index 17d25360fc..2497f95d18 100644 --- a/man/man3/pthread_once.3 +++ b/man/man3/pthread_once.3 @@ -17,7 +17,7 @@ once-only initialization .P .BI "pthread_once_t " once_control " = PTHREAD_ONCE_INIT;" .P -.BI "int pthread_once(pthread_once_t *" once_control ", void (*" init_routine ") (void));" +.BI "int pthread_once(pthread_once_t *" once_control ", typeof(void (void)) *" init_routine ; . . .SH DESCRIPTION |
