Skip to content

Commit

Permalink
Fix compiler warnings: missing field initializers.
Browse files Browse the repository at this point in the history
Explicitly initialize unspecified fields to zero in command line
options setup.
  • Loading branch information
cmikk committed Mar 11, 2019
1 parent 379c7bd commit 980e6ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/fstrm_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static argv_t g_args[] = {
NULL,
"filter -w path with strftime (UTC)" },

{ ARGV_LAST },
{ ARGV_LAST, 0, 0, 0, 0, 0 },
};

static struct conn *
Expand Down
4 changes: 2 additions & 2 deletions src/fstrm_replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static argv_t g_args[] = {
/* ARGV_ONE_OF indicates that the user must specify the
* previous option (-u) or next option (-a), but not both.
*/
{ ARGV_ONE_OF },
{ ARGV_ONE_OF, 0, 0, 0, 0, 0 },

{ 'a', "tcp",
ARGV_CHAR_P,
Expand All @@ -95,7 +95,7 @@ static argv_t g_args[] = {
"<FILE>",
"Files to read Frame Streams data from" },

{ ARGV_LAST },
{ ARGV_LAST, 0, 0, 0, 0, 0 },
};

static void
Expand Down

0 comments on commit 980e6ed

Please sign in to comment.