aboutsummaryrefslogtreecommitdiff
path: root/toys/net
diff options
context:
space:
mode:
Diffstat (limited to 'toys/net')
-rw-r--r--toys/net/sntp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/toys/net/sntp.c b/toys/net/sntp.c
index 96139e8f..b1ecb1be 100644
--- a/toys/net/sntp.c
+++ b/toys/net/sntp.c
@@ -67,12 +67,6 @@ static void doublyso(unsigned long long now, struct timespec *tv)
tv->tv_nsec = ((now&0xFFFFFFFF)*1000000000)>>32;
}
-// return difference between two timespecs in nanosecs
-static long long nanodiff(struct timespec *old, struct timespec *new)
-{
- return (new->tv_sec - old->tv_sec)*1000000000LL+(new->tv_nsec - old->tv_nsec);
-}
-
void sntp_main(void)
{
struct timespec tv, tv2;