From 674d4cc6a4c2317c3ac61f8abdd6c8bc651660e9 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Fri, 15 Dec 2023 09:52:19 -0500 Subject: [PATCH] Resolve write(2) warning --- src/simclist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simclist.c b/src/simclist.c index 8428ca3..b30dc54 100755 --- a/src/simclist.c +++ b/src/simclist.c @@ -1354,7 +1354,7 @@ int ks_list_dump_filedescriptor(const ks_list_t *restrict l, int fd, ks_size_t * WRITE_ERRCHECK(fd, ser_buf, bufsize); } else { /* speculation found broken */ - WRITE_ERRCHECK(fd, &bufsize, sizeof(ks_size_t)); + WRITE_ERRCHECK(fd, &bufsize, sizeof(uint32_t)); WRITE_ERRCHECK(fd, ser_buf, bufsize); } ks_pool_free(&ser_buf); @@ -1379,7 +1379,7 @@ int ks_list_dump_filedescriptor(const ks_list_t *restrict l, int fd, ks_size_t * WRITE_ERRCHECK(fd, x->data, bufsize); } else { - WRITE_ERRCHECK(fd, &bufsize, sizeof(ks_size_t)); + WRITE_ERRCHECK(fd, &bufsize, sizeof(uint32_t)); WRITE_ERRCHECK(fd, x->data, bufsize); } }