[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 11/26: test_shutdown_select: fixed code style
From: |
gnunet |
Subject: |
[libmicrohttpd] 11/26: test_shutdown_select: fixed code style |
Date: |
Mon, 25 Apr 2022 15:08:35 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit e152c9c49be66406687617a322e2144cb0f1618d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Apr 23 15:21:00 2022 +0300
test_shutdown_select: fixed code style
---
src/microhttpd/test_shutdown_select.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/microhttpd/test_shutdown_select.c
b/src/microhttpd/test_shutdown_select.c
index 7c345333..a5575537 100644
--- a/src/microhttpd/test_shutdown_select.c
+++ b/src/microhttpd/test_shutdown_select.c
@@ -178,7 +178,7 @@ start_socket_listen (int domain)
#endif
addrlen = sizeof (struct sockaddr_in);
- if (bind (fd, (const struct sockaddr*) &sock_addr, addrlen) < 0)
+ if (bind (fd, (const struct sockaddr *) &sock_addr, addrlen) < 0)
{
fprintf (stderr, "Failed to bind socket: %u\n",
(unsigned) sock_errno);
@@ -220,10 +220,10 @@ start_socket_listen (int domain)
MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
-select_thread (void*data)
+select_thread (void *data)
{
/* use select() like in daemon.c */
- MHD_socket listen_sock = *((MHD_socket*) data);
+ MHD_socket listen_sock = *((MHD_socket *) data);
fd_set rs, ws;
struct timeval timeout;
@@ -241,11 +241,11 @@ select_thread (void*data)
#ifdef HAVE_POLL
MHD_THRD_RTRN_TYPE_ MHD_THRD_CALL_SPEC_
-poll_thread (void*data)
+poll_thread (void *data)
{
/* use poll() like in daemon.c */
struct pollfd p[1];
- MHD_socket listen_sock = *((MHD_socket*) data);
+ MHD_socket listen_sock = *((MHD_socket *) data);
p[0].fd = listen_sock;
p[0].events = POLLIN;
@@ -281,7 +281,7 @@ main (int argc, char *const *argv)
int i;
time_t start_t, end_t;
int result = 0;
- MHD_THRD_RTRN_TYPE_ (MHD_THRD_CALL_SPEC_ * test_func)(void*data);
+ MHD_THRD_RTRN_TYPE_ (MHD_THRD_CALL_SPEC_ * test_func)(void *data);
#ifdef MHD_WINSOCK_SOCKETS
WORD ver_req;
WSADATA wsa_data;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 03/26: autoinit_funcs.h: added functions prototypes, (continued)
- [libmicrohttpd] 03/26: autoinit_funcs.h: added functions prototypes, gnunet, 2022/04/25
- [libmicrohttpd] 02/26: daemon.c: added prototypes for non-static functions, gnunet, 2022/04/25
- [libmicrohttpd] 04/26: autoinit_funcs.h: improved formatting, gnunet, 2022/04/25
- [libmicrohttpd] 01/26: MHD_start_daemon: simplified logic for AUTO flags, gnunet, 2022/04/25
- [libmicrohttpd] 06/26: websocket_threaded_example: mark function as static, gnunet, 2022/04/25
- [libmicrohttpd] 07/26: basicauth: very minor optimisaion, gnunet, 2022/04/25
- [libmicrohttpd] 05/26: Fixed old-style functions definitions, gnunet, 2022/04/25
- [libmicrohttpd] 13/26: doc/examples: do not use non-literals for printf(), gnunet, 2022/04/25
- [libmicrohttpd] 19/26: md5.c: muted compiler alignment warnings, gnunet, 2022/04/25
- [libmicrohttpd] 10/26: microhttpd2.h: fixed code style, gnunet, 2022/04/25
- [libmicrohttpd] 11/26: test_shutdown_select: fixed code style,
gnunet <=
- [libmicrohttpd] 08/26: configure: changed warning compiler flags, gnunet, 2022/04/25
- [libmicrohttpd] 14/26: doc/examples: improved formatting, gnunet, 2022/04/25
- [libmicrohttpd] 12/26: src/examples: fixed printf format specifiers, gnunet, 2022/04/25
- [libmicrohttpd] 15/26: doc/examples: avoid usage of unportable functions, gnunet, 2022/04/25
- [libmicrohttpd] 09/26: Fixed many macros, gnunet, 2022/04/25
- [libmicrohttpd] 20/26: sha256.c: fixed coding style, gnunet, 2022/04/25
- [libmicrohttpd] 26/26: test_postprocessor: fixed typo, gnunet, 2022/04/25
- [libmicrohttpd] 22/26: sha1.c: fixed coding style, gnunet, 2022/04/25
- [libmicrohttpd] 24/26: MHD_get_daemon_info(): fixed unaligned memory access, gnunet, 2022/04/25
- [libmicrohttpd] 16/26: daemon.c: fixed possible unaligned access to 'struct sockaddr_in', gnunet, 2022/04/25