Skip to content

Commit

Permalink
[rcorder] [crunch] Fix C function declarations to include void
Browse files Browse the repository at this point in the history
This fixes a compile issue under gcc6 which complains about
legacy style C function declarations.

Differential Revision:	https://reviews.freebsd.org/D26504
  • Loading branch information
Adrian Chadd authored and Adrian Chadd committed Sep 21, 2020
1 parent 34e0b83 commit 0dcdda0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sbin/rcorder/rcorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ do_file(filenode *fnode, strnodelist *stack_ptr)
}

static void
generate_graphviz_header()
generate_graphviz_header(void)
{

if (do_graphviz != true)
Expand All @@ -1003,15 +1003,15 @@ generate_graphviz_header()
}

static void
generate_graphviz_footer()
generate_graphviz_footer(void)
{

if (do_graphviz == true)
printf("}\n");
}

static void
generate_graphviz_providers()
generate_graphviz_providers(void)
{
Hash_Entry *entry;
Hash_Search psearch;
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/crunch/crunchgen/crunched_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ crunched_main(int argc, char **argv, char **envp)
}

static void
crunched_usage()
crunched_usage(void)
{
int columns, len;
struct stub *ep;
Expand Down

0 comments on commit 0dcdda0

Please sign in to comment.