From 89f78318058590a2ccda22ed447a9d134857ff14 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 29 Nov 2012 11:41:38 +0100 Subject: auto calculate the packet size in gg_*_send() --- libglouglou/tests/sendrecv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglouglou/tests') diff --git a/libglouglou/tests/sendrecv.c b/libglouglou/tests/sendrecv.c index ea8fa0e..fbf4aed 100644 --- a/libglouglou/tests/sendrecv.c +++ b/libglouglou/tests/sendrecv.c @@ -46,10 +46,10 @@ main(void) pkt.ver = PACKET_VERSION; pkt.type = PACKET_NEWCONN; - gg_server_send(srv, &pkt, PACKET_NEWCONN_SIZE, NULL); + gg_server_send(srv, &pkt, NULL); event_base_loop(ev_base, EVLOOP_ONCE); - gg_client_send(cli, &pkt, PACKET_NEWCONN_SIZE); + gg_client_send(cli, &pkt); event_base_loop(ev_base, EVLOOP_ONCE); if (srv_recv_ok == 0) -- cgit v1.2.3-59-g8ed1b