Skip to content

Commit

Permalink
tools:virtio: fix compilation warning
Browse files Browse the repository at this point in the history
We do not allow old-style function definition.  Always spell foo(void) if
a function does not take any parameters.

Signed-off-by: Cong Ding <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
ccding authored and mstsirkin committed Dec 6, 2012
1 parent b93196d commit 4a7d645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/virtio/virtio_test.c
Original file line number Diff line number Diff line change
@@ -232,7 +232,7 @@ const struct option longopts[] = {
}
};

static void help()
static void help(void)
{
fprintf(stderr, "Usage: virtio_test [--help]"
" [--no-indirect]"

0 comments on commit 4a7d645

Please sign in to comment.