summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-09 17:30:22 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-06-09 17:30:22 -0600
commit966fd48cc8a6324f347a08a8c6057060e8b5dc75 (patch)
tree2f1779f5e3aab44a2309d0e30c3a9449af73af4f /lib9p/srv.c
parentaf93e435385757996c23c436de892254973590dc (diff)
lib9p_srv: Prune use of SSIZE_MAX
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r--lib9p/srv.c6
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 ********************************************************************/