projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid calling time(NULL).
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
a4fd3a4
..
488cb7c
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-751,7
+751,7
@@
static bool setup_myself(void) {
myself->nexthop = myself;
myself->via = myself;
myself->status.reachable = true;
myself->nexthop = myself;
myself->via = myself;
myself->status.reachable = true;
- myself->last_state_change =
time(NULL)
;
+ myself->last_state_change =
now.tv_sec
;
myself->status.sptps = experimental;
node_add(myself);
myself->status.sptps = experimental;
node_add(myself);
@@
-958,7
+958,7
@@
static bool setup_myself(void) {
return false;
}
return false;
}
- last_config_check =
time(NULL)
;
+ last_config_check =
now.tv_sec
;
return true;
}
return true;
}