diff options
author | ed <ed@FreeBSD.org> | 2012-09-01 10:56:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-09-01 10:56:15 +0000 |
commit | 79fa964314bead3dd00a1a411724f8446667a8bc (patch) | |
tree | b7ba2b2f8c87351532d4a47d18e8a7de91ab07ef /sbin/bsdlabel | |
parent | 12303b5db53ad5e4e7600440f16031789eb98c64 (diff) | |
download | FreeBSD-src-79fa964314bead3dd00a1a411724f8446667a8bc.zip FreeBSD-src-79fa964314bead3dd00a1a411724f8446667a8bc.tar.gz |
Rework time handling.
After I made the previous commit, I noticed the code does some things it
shouldn't. It casts a struct timeval to a time_t, assuming tv_sec is the
first member. Also, we are not interested in microseconds, so it is
better to just call time(NULL).
MFC after: 1 month
Diffstat (limited to 'sbin/bsdlabel')
0 files changed, 0 insertions, 0 deletions