summaryrefslogtreecommitdiffstats
path: root/tools/virtio/virtio_test.c
diff options
context:
space:
mode:
authorCong Ding <dinggnu@gmail.com>2012-12-03 10:24:54 +0000
committerMichael S. Tsirkin <mst@redhat.com>2012-12-06 17:09:17 +0200
commit4a7d6455b07845d92e025da222f11de519f90def (patch)
treec85be14fbd161f128d34c95770ac928e4230c3b3 /tools/virtio/virtio_test.c
parentb93196dc5af7729ff7cc50d3d322ab1a364aa14f (diff)
tools:virtio: fix compilation warning
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 <dinggnu@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio/virtio_test.c')
-rw-r--r--tools/virtio/virtio_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c
index e626fa553c5..6d25dcd2e97 100644
--- a/tools/virtio/virtio_test.c
+++ b/tools/virtio/virtio_test.c
@@ -232,7 +232,7 @@ const struct option longopts[] = {
}
};
-static void help()
+static void help(void)
{
fprintf(stderr, "Usage: virtio_test [--help]"
" [--no-indirect]"