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-09-28 18:52:18 +0200
commit91b680a7db2fd26f07d2a2905e3dba050c271680 (patch)
treee6941b627b74c35ff8a6bb437832b6dcbe078c43 /common.c
parentExtract all RTNETLINK code into ipm.{c,h} (diff)
downloadwg-dynamic-91b680a7db2fd26f07d2a2905e3dba050c271680.tar.xz
wg-dynamic-91b680a7db2fd26f07d2a2905e3dba050c271680.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 fe0e522..5dc229b 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 */