summaryrefslogtreecommitdiff
path: root/lib9p/tests
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-12 23:08:14 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-01-19 15:43:29 -0700
commitcd9667d6be072a9c736e49c679b55852f7b30a6c (patch)
treec99c10d4c0caea96cc5a5420532eccaa60efe976 /lib9p/tests
parent6381e08fd03e322d7d95973ca00c5605afb67707 (diff)
lib9p: Don't nul-terminate strings, add some string utils
Diffstat (limited to 'lib9p/tests')
-rw-r--r--lib9p/tests/test_server/config/config.h4
-rw-r--r--lib9p/tests/test_server/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/tests/test_server/config/config.h b/lib9p/tests/test_server/config/config.h
index e207f7e..971dda2 100644
--- a/lib9p/tests/test_server/config/config.h
+++ b/lib9p/tests/test_server/config/config.h
@@ -1,6 +1,6 @@
/* config.h - Compile-time configuration for srv9p
*
- * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
+ * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@@ -33,7 +33,7 @@
/**
* Maximum host-data-structure size. A message may be larger in
* unmarshaled-host-structures than marshaled-net-bytes due to (1)
- * struct padding, (2) nul-terminator byes for strings.
+ * struct padding, (2) array pointers.
*/
#define CONFIG_9P_MAX_HOSTMSG_SIZE CONFIG_9P_MAX_MSG_SIZE+16
#define CONFIG_9P_MAX_FIDS 16
diff --git a/lib9p/tests/test_server/main.c b/lib9p/tests/test_server/main.c
index a6e4eeb..8e5011a 100644
--- a/lib9p/tests/test_server/main.c
+++ b/lib9p/tests/test_server/main.c
@@ -78,7 +78,7 @@ static struct util9p_static_dir root = {
},
};
-static implements_lib9p_srv_file *get_root(struct lib9p_srv_ctx *LM_UNUSED(ctx), char *LM_UNUSED(treename)) {
+static implements_lib9p_srv_file *get_root(struct lib9p_srv_ctx *LM_UNUSED(ctx), struct lib9p_s LM_UNUSED(treename)) {
return &root;
}