diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-09 21:35:30 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-09 21:35:30 -0600 |
commit | cd5768ef4bc36b33699539d9656f455bafb0de0c (patch) | |
tree | 55aa107d229e85d5b7eb611b7124eaf150d3a3bd /lib9p/srv.c | |
parent | ef5956962675d7cb1bdb76a2fc45760b002a570c (diff) | |
parent | ba860d699f4e5bfe8cd19b140044bbbd2f78919a (diff) |
Merge branch 'lukeshu/misc'
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r-- | lib9p/srv.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c index 085cc8b..d1f5814 100644 --- a/lib9p/srv.c +++ b/lib9p/srv.c @@ -4,13 +4,9 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include <limits.h> /* for SSIZE_MAX, not set by newlib */ #include <stddef.h> /* for size_t */ #include <stdlib.h> /* for malloc() */ #include <string.h> /* for memcpy() */ -#ifndef SSIZE_MAX -#define SSIZE_MAX (SIZE_MAX >> 1) -#endif #include <libcr/coroutine.h> #include <libcr_ipc/chan.h> @@ -40,7 +36,7 @@ #error config.h must define CONFIG_9P_SRV_MAX_HOSTMSG_SIZE #endif static_assert(CONFIG_9P_SRV_MAX_MSG_SIZE <= CONFIG_9P_SRV_MAX_HOSTMSG_SIZE); -static_assert(CONFIG_9P_SRV_MAX_HOSTMSG_SIZE <= SSIZE_MAX); +static_assert(CONFIG_9P_SRV_MAX_HOSTMSG_SIZE <= SIZE_MAX); /* context ********************************************************************/ |