diff options
author | Rob Landley <rob@landley.net> | 2019-02-13 20:05:39 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-02-13 20:05:39 -0600 |
commit | 6b018bc0ff306766c6e9dfc0ac737cfb904b22e1 (patch) | |
tree | d9f64c9da3841d35fa91841a0ba3f2cf60a840db /toys/net | |
parent | 3703383148c1a7852096ed98c3cba2391e53d7ef (diff) | |
download | toybox-6b018bc0ff306766c6e9dfc0ac737cfb904b22e1.tar.gz |
Oops, missed one.
Diffstat (limited to 'toys/net')
-rw-r--r-- | toys/net/sntp.c | 6 |
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; |