Skip to content

Commit

Permalink
cdba: remove unnecessary initialisation
Browse files Browse the repository at this point in the history
Silence Clang warning by removing unused '0' from struct initialisation.

Signed-off-by: Dmitry Baryshkov <[email protected]>
  • Loading branch information
lumag authored and calebccff committed Nov 6, 2023
1 parent bd5c609 commit 18bae8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cdba-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cdba.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 18bae8d

Please sign in to comment.