From: Alejandro Colomar Date: Fri, 13 Dec 2024 13:19:28 +0000 (+0100) Subject: man/man3/: SYNOPSIS: Use typeof() to improve readability of function pointer types X-Git-Tag: man-pages-6.10~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=850f46e7df4f096dd073bafbad9eba219707dda5;p=thirdparty%2Fman-pages.git 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 Signed-off-by: Alejandro Colomar --- diff --git a/man/man3/pthread_key_create.3 b/man/man3/pthread_key_create.3 index 966e5a24a..78266bb68 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 .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 17d25360f..2497f95d1 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