diff options
author | Cong Ding <dinggnu@gmail.com> | 2012-12-03 05:24:54 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-12-06 10:09:17 -0500 |
commit | 4a7d6455b07845d92e025da222f11de519f90def (patch) | |
tree | c85be14fbd161f128d34c95770ac928e4230c3b3 /tools | |
parent | b93196dc5af7729ff7cc50d3d322ab1a364aa14f (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')
-rw-r--r-- | tools/virtio/virtio_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index e626fa553c5a..6d25dcd2e97a 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c | |||
@@ -232,7 +232,7 @@ const struct option longopts[] = { | |||
232 | } | 232 | } |
233 | }; | 233 | }; |
234 | 234 | ||
235 | static void help() | 235 | static void help(void) |
236 | { | 236 | { |
237 | fprintf(stderr, "Usage: virtio_test [--help]" | 237 | fprintf(stderr, "Usage: virtio_test [--help]" |
238 | " [--no-indirect]" | 238 | " [--no-indirect]" |