diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-09 00:40:24 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-10 16:33:39 -0600 |
commit | d52f9cacdfa88a21bcf4d3ea4c0468e7f312ce4c (patch) | |
tree | ed88ef5f2f2779f5123707a8bcc7e6fc8b72e181 /lib9p/tables.c | |
parent | 2fd70f7a976b6c2c4ed4facdf02654c6f298caaf (diff) |
lib9p: No reason for lib9p_state_validate()->host_size to be signed
Diffstat (limited to 'lib9p/tables.c')
-rw-r--r-- | lib9p/tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib9p/tables.c b/lib9p/tables.c index 68b960e..86e3298 100644 --- a/lib9p/tables.c +++ b/lib9p/tables.c @@ -156,12 +156,12 @@ bool lib9p_Rmsg_marshal(struct lib9p_ctx *ctx, enum lib9p_msg_type typ, void *bo /* `struct lib9p_stat` helpers ************************************************/ bool lib9p_stat_validate(struct lib9p_ctx *ctx, uint32_t net_size, uint8_t *net_bytes, - uint32_t *ret_net_size, ssize_t *ret_host_size) { + uint32_t *ret_net_size, size_t *ret_host_size) { ssize_t host_size = _lib9p_stat_validate(ctx, net_size, net_bytes, ret_net_size); if (host_size < 0) return true; if (ret_host_size) - *ret_host_size = host_size; + *ret_host_size = (size_t)host_size; return false; } |