diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-09-05 02:54:20 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-09-05 07:52:20 +0200 |
commit | 011266555a78e000a69caf9c3009f71caa9f7dc2 (patch) | |
tree | 4e6684bc3b378bf131b55347da39bf812459564e /server/tests | |
parent | 7e1c773325c6f18af7b135dc2ee2b799801c2f57 (diff) | |
download | spice-011266555a78e000a69caf9c3009f71caa9f7dc2.tar.gz spice-011266555a78e000a69caf9c3009f71caa9f7dc2.tar.xz spice-011266555a78e000a69caf9c3009f71caa9f7dc2.zip |
server: fix function prototypes
Several functions in server/ were not specifying an argument list,
ie they were declared as void foo(); When compiling with
-Wstrict-prototypes, this leads to:
test_playback.c:93:5: erreur: function declaration isn’t a prototype
[-Werror=strict-prototypes]
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/basic_event_loop.c | 2 | ||||
-rw-r--r-- | server/tests/test_display_base.c | 8 | ||||
-rw-r--r-- | server/tests/test_display_no_ssl.c | 2 | ||||
-rw-r--r-- | server/tests/test_display_streaming.c | 2 | ||||
-rw-r--r-- | server/tests/test_empty_success.c | 2 | ||||
-rw-r--r-- | server/tests/test_fail_on_null_core_interface.c | 2 | ||||
-rw-r--r-- | server/tests/test_just_sockets_no_ssl.c | 2 | ||||
-rw-r--r-- | server/tests/test_playback.c | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c index c74cbd83..e0cc06e6 100644 --- a/server/tests/basic_event_loop.c +++ b/server/tests/basic_event_loop.c @@ -159,7 +159,7 @@ void calc_next_timeout(SpiceTimer *next, struct timeval *timeout) tv_b_minus_a_return_le_zero(&now, &next->tv_start, timeout); } -void timeout_timers() +void timeout_timers(void) { SpiceTimer *next; struct timeval left; diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c index a174d876..81f942bc 100644 --- a/server/tests/test_display_base.c +++ b/server/tests/test_display_base.c @@ -324,7 +324,7 @@ static void push_command(QXLCommandExt *ext) commands_end++; } -static struct QXLCommandExt *get_simple_command() +static struct QXLCommandExt *get_simple_command(void) { struct QXLCommandExt *ret = commands[commands_start%COMMANDS_SIZE]; ASSERT(commands_start < commands_end); @@ -332,7 +332,7 @@ static struct QXLCommandExt *get_simple_command() return ret; } -static int num_commands() +static int num_commands(void) { return commands_end - commands_start; } @@ -350,7 +350,7 @@ static int get_command(QXLInstance *qin, struct QXLCommandExt *ext) static int *simple_commands = NULL; static int num_simple_commands = 0; -static void produce_command() +static void produce_command(void) { static int target_surface = 0; static int cmd_index = 0; @@ -410,7 +410,7 @@ static int req_cmd_notification(QXLInstance *qin) return TRUE; } -static void do_wakeup() +static void do_wakeup(void *opaque) { int notify; cursor_notify = NOTIFY_CURSOR_BATCH; diff --git a/server/tests/test_display_no_ssl.c b/server/tests/test_display_no_ssl.c index b72acc9a..1eb83b37 100644 --- a/server/tests/test_display_no_ssl.c +++ b/server/tests/test_display_no_ssl.c @@ -35,7 +35,7 @@ int simple_commands[] = { SIMPLE_UPDATE, }; -int main() +int main(void) { core = basic_event_loop_init(); server = test_init(core); diff --git a/server/tests/test_display_streaming.c b/server/tests/test_display_streaming.c index fdb12067..b4025254 100644 --- a/server/tests/test_display_streaming.c +++ b/server/tests/test_display_streaming.c @@ -14,7 +14,7 @@ int simple_commands[] = { SpiceCoreInterface *core; SpiceServer *server; -int main() +int main(void) { core = basic_event_loop_init(); server = test_init(core); diff --git a/server/tests/test_empty_success.c b/server/tests/test_empty_success.c index 97aa7726..3641eb76 100644 --- a/server/tests/test_empty_success.c +++ b/server/tests/test_empty_success.c @@ -36,7 +36,7 @@ void channel_event(int event, SpiceChannelEventInfo *info) { } -int main() +int main(void) { SpiceServer *server = spice_server_new(); SpiceCoreInterface core; diff --git a/server/tests/test_fail_on_null_core_interface.c b/server/tests/test_fail_on_null_core_interface.c index 699b2a2f..6490a6a7 100644 --- a/server/tests/test_fail_on_null_core_interface.c +++ b/server/tests/test_fail_on_null_core_interface.c @@ -1,6 +1,6 @@ #include <spice.h> -int main() +int main(void) { SpiceServer *server = spice_server_new(); SpiceCoreInterface core; diff --git a/server/tests/test_just_sockets_no_ssl.c b/server/tests/test_just_sockets_no_ssl.c index 38d3a63b..afa3558b 100644 --- a/server/tests/test_just_sockets_no_ssl.c +++ b/server/tests/test_just_sockets_no_ssl.c @@ -3,7 +3,7 @@ #include <spice.h> #include "basic_event_loop.h" -int main() +int main(void) { SpiceServer *server = spice_server_new(); SpiceCoreInterface *core = basic_event_loop_init(); diff --git a/server/tests/test_playback.c b/server/tests/test_playback.c index cb1aa9b0..0b95bfdf 100644 --- a/server/tests/test_playback.c +++ b/server/tests/test_playback.c @@ -90,7 +90,7 @@ void playback_timer_cb(void *opaque) core->timer_start(playback_timer, playback_timer_ms); } -int main() +int main(void) { SpiceServer *server = spice_server_new(); core = basic_event_loop_init(); |