chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: correct type of key exchange strings from uint8_t* to char*
[secnet.git]
/
udp.c
diff --git
a/udp.c
b/udp.c
index 9615a174224624ce8a58d173f5df68a2de2b3de8..4c393cd603cf397499c206632e2061c9b1947ef9 100644
(file)
--- a/
udp.c
+++ b/
udp.c
@@
-47,8
+47,7
@@
struct udp {
};
static int udp_beforepoll(void *state, struct pollfd *fds, int *nfds_io,
};
static int udp_beforepoll(void *state, struct pollfd *fds, int *nfds_io,
- int *timeout_io, const struct timeval *tv,
- uint64_t *now)
+ int *timeout_io)
{
struct udp *st=state;
if (*nfds_io<1) {
{
struct udp *st=state;
if (*nfds_io<1) {
@@
-61,12
+60,11
@@
static int udp_beforepoll(void *state, struct pollfd *fds, int *nfds_io,
return 0;
}
return 0;
}
-static void udp_afterpoll(void *state, struct pollfd *fds, int nfds,
- const struct timeval *tv, uint64_t *now)
+static void udp_afterpoll(void *state, struct pollfd *fds, int nfds)
{
struct udp *st=state;
struct sockaddr_in from;
{
struct udp *st=state;
struct sockaddr_in from;
-
in
t fromlen;
+
socklen_
t fromlen;
struct notify_list *n;
bool_t done;
int rv;
struct notify_list *n;
bool_t done;
int rv;
@@
-302,7
+300,6
@@
static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context,
return new_closure(&st->cl);
}
return new_closure(&st->cl);
}
-init_module udp_module;
void udp_module(dict_t *dict)
{
add_closure(dict,"udp",udp_apply);
void udp_module(dict_t *dict)
{
add_closure(dict,"udp",udp_apply);