diff options
author | Rob Landley <rob@landley.net> | 2019-02-05 08:21:03 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-02-05 08:21:03 -0600 |
commit | 3e3c50c3fd1682db7ad8269d588637e2251948a3 (patch) | |
tree | 8e92f140bc69cf86ed7d663050f802d70176e959 /toys/pending | |
parent | 843b92406da0fd27eab77e193c8329e5cbea1fa0 (diff) | |
download | toybox-3e3c50c3fd1682db7ad8269d588637e2251948a3.tar.gz |
Fix some llvm warnings.
I don't know why NDK llvm is complaining about adjtime(), toys.h is #including
<sys/time.h> which http://man7.org/linux/man-pages/man3/adjtime.3.html says
is the right header...?
Diffstat (limited to 'toys/pending')
-rw-r--r-- | toys/pending/sntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/pending/sntp.c b/toys/pending/sntp.c index 97f878fa..f1415332 100644 --- a/toys/pending/sntp.c +++ b/toys/pending/sntp.c @@ -257,8 +257,8 @@ void sntp_main(void) // Display the time and offset if (!FLAG(q)) { format_iso_time(toybuf, sizeof(toybuf)-1, &tv2); - printf("%s offset %c%d.%09d secs\n", toybuf, (diff<0) ? '-' : '+', - abs(diff/1000000000), abs(diff%1000000000)); + printf("%s offset %c%lld.%09lld secs\n", toybuf, (diff<0) ? '-' : '+', + llabs(diff/1000000000), llabs(diff%1000000000)); } // If we're not in daemon mode, we're done. (Can't get here for -S.) |