git: b7461ca3be71 - main - tests/sys/kern/ssl_sendfile: improve style(9)

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Thu, 12 Nov 2026 07:04:27 UTC
The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=b7461ca3be71bbbeb9007f47e8985a9fce737594

commit b7461ca3be71bbbeb9007f47e8985a9fce737594
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-11-12 07:02:44 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-12 07:03:36 +0000

    tests/sys/kern/ssl_sendfile: improve style(9)
    
    - Sort headers.
    - Put `{` on new line after function definition header.
    
    Add `sys/types.h` include while here per API contract for `socket(..)`,
    et al.
    
    MFC after:      1 week
---
 tests/sys/kern/ssl_sendfile.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/sys/kern/ssl_sendfile.c b/tests/sys/kern/ssl_sendfile.c
index 3b93b3beef28..ad938b65ef19 100644
--- a/tests/sys/kern/ssl_sendfile.c
+++ b/tests/sys/kern/ssl_sendfile.c
@@ -25,15 +25,16 @@
  * SUCH DAMAGE.
  */
 
+#include <sys/types.h>
 #include <sys/ioctl.h>
+#include <sys/mman.h>
 #include <sys/socket.h>
 #include <sys/sysctl.h>
-#include <sys/mman.h>
 #include <netinet/in.h>
 #include <fcntl.h>
-#include <stdlib.h>
 #include <poll.h>
 #include <pthread.h>
+#include <stdlib.h>
 
 #include <openssl/ssl.h>
 #include <openssl/err.h>
@@ -185,7 +186,8 @@ common_cleanup(struct ctx *c)
 }
 
 static void *
-server_thread(void *arg) {
+server_thread(void *arg)
+{
 	struct ctx *c = arg;
 	SSL_CTX *srv;
 	SSL *ssl;