mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 21:02:55 +00:00
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]
20 lines
382 B
C
20 lines
382 B
C
#include <strings.h>
|
|
#include <sys/select.h>
|
|
#include <spice.h>
|
|
#include "basic_event_loop.h"
|
|
|
|
int main(void)
|
|
{
|
|
SpiceServer *server = spice_server_new();
|
|
SpiceCoreInterface *core = basic_event_loop_init();
|
|
|
|
spice_server_set_port(server, 5912);
|
|
spice_server_set_noauth(server);
|
|
spice_server_init(server, core);
|
|
|
|
basic_event_loop_mainloop();
|
|
|
|
return 0;
|
|
}
|
|
|