diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-12 14:26:21 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-12 14:26:21 -0600 |
commit | 811d9700e1414dae3357361b3ca565f673f63b08 (patch) | |
tree | ce628075a2ae59d5362d2662465c918f57e81607 /lib9p/core.c | |
parent | cd5e55ebb7d5a51c0a8bd62137ab75a0f6ff1356 (diff) | |
parent | b4a081932338f65aa87aeba5008463feb0a78519 (diff) |
Diffstat (limited to 'lib9p/core.c')
-rw-r--r-- | lib9p/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |