projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add optional systemd integration
[tinc]
/
src
/
event.c
diff --git
a/src/event.c
b/src/event.c
index
2710a8b
..
463735f
100644
(file)
--- a/
src/event.c
+++ b/
src/event.c
@@
-245,7
+245,7
@@
void io_del(io_t *io) {
io->cb = NULL;
}
io->cb = NULL;
}
-void timeout_add(timeout_t *timeout, timeout_cb_t cb, void *data, struct timeval *tv) {
+void timeout_add(timeout_t *timeout, timeout_cb_t cb, void *data,
const
struct timeval *tv) {
timeout->cb = cb;
timeout->data = data;
timeout->node.data = timeout;
timeout->cb = cb;
timeout->data = data;
timeout->node.data = timeout;
@@
-253,7
+253,7
@@
void timeout_add(timeout_t *timeout, timeout_cb_t cb, void *data, struct timeval
timeout_set(timeout, tv);
}
timeout_set(timeout, tv);
}
-void timeout_set(timeout_t *timeout, struct timeval *tv) {
+void timeout_set(timeout_t *timeout,
const
struct timeval *tv) {
if(timerisset(&timeout->tv)) {
splay_unlink_node(&timeout_tree, &timeout->node);
}
if(timerisset(&timeout->tv)) {
splay_unlink_node(&timeout_tree, &timeout->node);
}