From b4a081932338f65aa87aeba5008463feb0a78519 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 12 May 2025 14:17:05 -0600 Subject: More GCC 15 fixes --- lib9p/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib9p/core.c') diff --git a/lib9p/core.c b/lib9p/core.c index 03cdea5..c777741 100644 --- a/lib9p/core.c +++ b/lib9p/core.c @@ -20,7 +20,7 @@ struct lib9p_s lib9p_str(char *s) { if (!s) - return (struct lib9p_s){0}; + return (struct lib9p_s){}; return (struct lib9p_s){ .len = strlen(s), .utf8 = s, @@ -28,7 +28,7 @@ struct lib9p_s lib9p_str(char *s) { } struct lib9p_s lib9p_strn(char *s, size_t maxlen) { if (maxlen == 0 || !s) - return (struct lib9p_s){0}; + return (struct lib9p_s){}; return (struct lib9p_s){ .len = strnlen(s, maxlen), .utf8 = s, @@ -272,7 +272,7 @@ uint32_t lib9p_stat_marshal(struct lib9p_ctx *ctx, uint32_t max_net_size, struct struct lib9p_ctx _ctx = *ctx; _ctx.max_msg_size = max_net_size; - struct iovec iov = {0}; + struct iovec iov = {}; struct _marshal_ret ret = { .net_iov_cnt = 1, .net_iov = &iov, -- cgit v1.2.3-2-g168b