diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-05-06 20:30:47 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-05-06 20:30:47 +0200 |
commit | 468e6e2a047583fc1d43c535d02507f83e88fc01 (patch) | |
tree | 899267b28472bdee1172f74dabc17cfccd6af8c6 /lib/tests/udp.c | |
parent | b9e967b3cde6af41cd0e863e9ff073897019625a (diff) |
Use CUnit for tests.
cgreen didn't seem properly maintained. CUnit seems to be widely used.
Diffstat (limited to 'lib/tests/udp.c')
-rw-r--r-- | lib/tests/udp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/tests/udp.c b/lib/tests/udp.c index 47ea595..2c580da 100644 --- a/lib/tests/udp.c +++ b/lib/tests/udp.c @@ -1,3 +1,6 @@ +/* Copyright 2011,2013, NORDUnet A/S. All rights reserved. */ +/* See LICENSE for licensing information. */ + #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -10,6 +13,7 @@ #include <netdb.h> #include <sys/select.h> #include <sys/time.h> +#include "radius/client.h" #include "udp.h" static struct addrinfo * @@ -57,7 +61,7 @@ ssize_t udp_poll (struct polldata *data) { int r; - long timeout; + long timeout = 0; fd_set rfds; ssize_t len; uint8_t buf[RS_MAX_PACKET_LEN]; |