spice/server/tests/test_just_sockets_no_ssl.c
Christophe Fergeau 011266555a 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]
2011-09-05 07:52:20 +02:00

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;
}