commit 46a07b6404b749e8d6b2f307db47c5394d375f2a
parent c267a1141a281ea659bf678310ede140825ff3de
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 5 Dec 2021 12:01:31 +0300
mhd_threads.c: cosmetics
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/microhttpd/mhd_threads.c b/src/microhttpd/mhd_threads.c
@@ -51,8 +51,8 @@
#if defined(HAVE_PTHREAD_ATTR_SETNAME_NP_NETBSD) || \
defined(HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI)
# define MHD_USE_THREAD_ATTR_SETNAME 1
-#endif \
- /* HAVE_PTHREAD_ATTR_SETNAME_NP_NETBSD || HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI */
+#endif /* HAVE_PTHREAD_ATTR_SETNAME_NP_NETBSD || \
+ HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI */
#if defined(HAVE_PTHREAD_SETNAME_NP_GNU) || \
defined(HAVE_PTHREAD_SET_NAME_NP_FREEBSD) \
@@ -75,12 +75,12 @@ MHD_set_thread_name_ (const MHD_thread_ID_ thread_id,
#if defined(HAVE_PTHREAD_SETNAME_NP_GNU)
return ! pthread_setname_np (thread_id, thread_name);
#elif defined(HAVE_PTHREAD_SET_NAME_NP_FREEBSD)
- /* FreeBSD and OpenBSD use different name and void return type */
+ /* FreeBSD and OpenBSD use different function name and void return type */
pthread_set_name_np (thread_id, thread_name);
return ! 0;
#elif defined(HAVE_PTHREAD_SETNAME_NP_NETBSD)
/* NetBSD use 3 arguments: second argument is string in printf-like format,
- * third argument is single argument for printf;
+ * third argument is a single argument for printf();
* OSF1 use 3 arguments too, but last one always must be zero (NULL).
* MHD doesn't use '%' in thread names, so both form are used in same way.
*/
@@ -297,7 +297,7 @@ named_thread_starter (void *data)
*/
int
MHD_create_named_thread_ (MHD_thread_handle_ID_ *thread,
- const char*thread_name,
+ const char *thread_name,
size_t stack_size,
MHD_THREAD_START_ROUTINE_ start_routine,
void *arg)
@@ -361,7 +361,7 @@ MHD_create_named_thread_ (MHD_thread_handle_ID_ *thread,
if (! MHD_create_thread_ (thread,
stack_size,
&named_thread_starter,
- (void*) param))
+ (void *) param))
{
free (param);
return 0;