From 18bae8dec9bbbee31d0dbb87fffa3adf0538a120 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Mon, 2 Oct 2023 17:41:18 +0300 Subject: [PATCH] cdba: remove unnecessary initialisation Silence Clang warning by removing unused '0' from struct initialisation. Signed-off-by: Dmitry Baryshkov --- cdba-server.c | 2 +- cdba.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cdba-server.c b/cdba-server.c index df6db01..f1a7157 100644 --- a/cdba-server.c +++ b/cdba-server.c @@ -158,7 +158,7 @@ void cdba_send_buf(int type, size_t len, const void *buf) static int handle_stdin(int fd, void *buf) { - static struct circ_buf recv_buf = { 0 }; + static struct circ_buf recv_buf = { }; struct msg *msg; struct msg hdr; size_t n; diff --git a/cdba.c b/cdba.c index a759aed..00c02b1 100644 --- a/cdba.c +++ b/cdba.c @@ -581,7 +581,7 @@ int main(int argc, char **argv) int timeout_total = 600; struct work *next; struct work *work; - struct circ_buf recv_buf = { 0 }; + struct circ_buf recv_buf = { }; const char *board = NULL; const char *host = NULL; struct timeval now;