Skip to content

Commit 18bae8d

Browse files
lumagkcxt
authored andcommitted
cdba: remove unnecessary initialisation
Silence Clang warning by removing unused '0' from struct initialisation. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent bd5c609 commit 18bae8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cdba-server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void cdba_send_buf(int type, size_t len, const void *buf)
158158

159159
static int handle_stdin(int fd, void *buf)
160160
{
161-
static struct circ_buf recv_buf = { 0 };
161+
static struct circ_buf recv_buf = { };
162162
struct msg *msg;
163163
struct msg hdr;
164164
size_t n;

cdba.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ int main(int argc, char **argv)
581581
int timeout_total = 600;
582582
struct work *next;
583583
struct work *work;
584-
struct circ_buf recv_buf = { 0 };
584+
struct circ_buf recv_buf = { };
585585
const char *board = NULL;
586586
const char *host = NULL;
587587
struct timeval now;

0 commit comments

Comments
 (0)