summaryrefslogtreecommitdiff
path: root/lib/tests/udp.h
diff options
context:
space:
mode:
authorlinus <linus@nordu.net>2011-01-20 10:02:52 +0100
committerlinus <linus@nordu.net>2011-01-20 10:02:52 +0100
commitfb3c040c7b5fcf1a3446a36f0e6cea3ccfeebbda (patch)
tree5fbd03da0eb2beac8ff2da0ad53f92166326cdb5 /lib/tests/udp.h
parent75732c2f1247725bf512b152450306157b56d78f (diff)
Rename external functions in UDP test files.
Diffstat (limited to 'lib/tests/udp.h')
-rw-r--r--lib/tests/udp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/tests/udp.h b/lib/tests/udp.h
index 402295f..02e1b50 100644
--- a/lib/tests/udp.h
+++ b/lib/tests/udp.h
@@ -1,7 +1,6 @@
#include <stdint.h>
#include <unistd.h>
#include <sys/time.h>
-//#include <sys/types.h>
typedef ssize_t (*data_cb) (const uint8_t *buf, ssize_t len);
struct polldata {
@@ -10,5 +9,5 @@ struct polldata {
struct timeval *timeout;
};
-struct polldata *server (const char *bindto, struct timeval *timeout, data_cb cb);
-ssize_t poll (struct polldata *data);
+struct polldata *udp_server (const char *bindto, struct timeval *timeout, data_cb cb);
+ssize_t udp_poll (struct polldata *data);