cdba: remove unnecessary initialisation

Silence Clang warning by removing unused '0' from struct initialisation.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2023-10-02 17:41:18 +03:00
committed by Caleb Connolly
parent bd5c609ad7
commit 18bae8dec9
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

2
cdba.c
View File

@@ -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;