aboutsummaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2019-09-14 19:43:33 +0200
committerThomas Gschwantner <tharre3@gmail.com>2019-12-11 06:22:17 +0100
commitd69ddbec4d9e5ebed0e7de4a9c7fa04ffcddefce (patch)
treed0a1e1852b78b2fe03698c7fb6d1a38c06f67a7e /common.c
parentExtract all RTNETLINK code into ipm.{c,h} (diff)
downloadwg-dynamic-d69ddbec4d9e5ebed0e7de4a9c7fa04ffcddefce.tar.xz
wg-dynamic-d69ddbec4d9e5ebed0e7de4a9c7fa04ffcddefce.zip
Fixup client, including a lot of refactoring
Diffstat (limited to 'common.c')
-rw-r--r--common.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/common.c b/common.c
index da9226e..fae76f7 100644
--- a/common.c
+++ b/common.c
@@ -371,14 +371,6 @@ void print_to_buf(char *buf, size_t bufsize, size_t *offset, char *fmt, ...)
*offset += n;
}
-uint32_t current_time()
-{
- struct timespec tp;
- if (clock_gettime(CLOCK_REALTIME, &tp))
- fatal("clock_gettime(CLOCK_REALTIME)");
- return tp.tv_sec;
-}
-
bool is_link_local(unsigned char *addr)
{
/* TODO: check if the remaining 54 bits are 0 */