As we only use the .tv_sec field, simplify gettimeofday(2) -> time(3).
authorcheloha <cheloha@openbsd.org>
Sat, 23 Dec 2017 20:58:14 +0000 (20:58 +0000)
committercheloha <cheloha@openbsd.org>
Sat, 23 Dec 2017 20:58:14 +0000 (20:58 +0000)
commited1d13df04198c8974c20dae7729d60fb8e0a117
tree285c469919284b7dc054709402a51e8832a2130d
parent1dfeccb761e64b8879aa75aad68545dbf5f49aaa
As we only use the .tv_sec field, simplify gettimeofday(2) -> time(3).

While here, use err(3) instead of errx(3) if adjtime(2) fails.

Discussed/tweaked with/by tb@ and jca@.

ok tb@ jca@
bin/date/date.c