diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-13 00:46:53 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-15 14:42:30 -0600 |
commit | 377e3b7e358a0912260860e095e390264b377e0c (patch) | |
tree | 6baa247442e5872342645ba561673f24d27a4ec2 | |
parent | 535760a916ba380abe1240292e6da5167ffd7552 (diff) |
Add `static` to a few definitions
-rw-r--r-- | cmd/sbc_harness/main.c | 4 | ||||
-rw-r--r-- | lib9p/tests/test_server/main.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cmd/sbc_harness/main.c b/cmd/sbc_harness/main.c index de9751b..1fc76dc 100644 --- a/cmd/sbc_harness/main.c +++ b/cmd/sbc_harness/main.c @@ -61,7 +61,7 @@ enum { PATH_BASE = __COUNTER__ }; __VA_OPT__(,) __VA_ARGS__ \ })) -struct lib9p_srv_file root = +static struct lib9p_srv_file root = STATIC_DIR("", STATIC_DIR("Documentation", STATIC_FILE("YOUR_RIGHTS_AND_OBLIGATIONS.md", @@ -176,7 +176,7 @@ static COROUTINE write9p_cr(void *) { cr_end(); } -const char *const hexdig = "0123456789ABCDEF"; +static const char *const hexdig = "0123456789ABCDEF"; static_assert(_CONFIG_9P_MAX_REQS <= 16); COROUTINE init_cr(void *) { diff --git a/lib9p/tests/test_server/main.c b/lib9p/tests/test_server/main.c index d7819eb..9724e25 100644 --- a/lib9p/tests/test_server/main.c +++ b/lib9p/tests/test_server/main.c @@ -38,9 +38,9 @@ static lo_interface lib9p_srv_file get_root(struct lib9p_srv_ctx *, struct lib9p_s); -const char *hexdig = "0123456789abcdef"; +static const char *hexdig = "0123456789abcdef"; -struct { +static struct { uint16_t port; struct hostnet_tcp_listener listeners[_CONFIG_9P_MAX_CONNS]; struct lib9p_srv srv; @@ -67,7 +67,7 @@ struct { __VA_OPT__(,) __VA_ARGS__ \ })) -struct lib9p_srv_file root = +static struct lib9p_srv_file root = STATIC_DIR(1, "", STATIC_DIR(2, "Documentation", STATIC_FILE(3, "x", Documentation_x_txt), |