diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-19 23:23:18 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-21 15:09:29 +0300 |
commit | 7db7212c3a336c9499bfcd10d2affbf76bf1d6b1 (patch) | |
tree | bc22c6321c5dafc5f5c2af8701875e87a043895f /common/sw_canvas.c | |
parent | 0d1a9a3c89d9c31f7cc03b849bcec9ba698abb63 (diff) | |
download | spice-7db7212c3a336c9499bfcd10d2affbf76bf1d6b1.tar.gz spice-7db7212c3a336c9499bfcd10d2affbf76bf1d6b1.tar.xz spice-7db7212c3a336c9499bfcd10d2affbf76bf1d6b1.zip |
use foo(void) instead of foo() in prototypes
In C, the latter isn't a prototype for a function with no arg,
but declares a function with an undefined number of args.
[picked from master with changes since no main_channel, spice_common,
and a bunch of functions aren't there yet]
Diffstat (limited to 'common/sw_canvas.c')
-rw-r--r-- | common/sw_canvas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c index 9891d851..e95a9718 100644 --- a/common/sw_canvas.c +++ b/common/sw_canvas.c @@ -1276,7 +1276,7 @@ SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format, ); } -void sw_canvas_init() //unsafe global function +void sw_canvas_init(void) //unsafe global function { if (!need_init) { return; |