update-done: minor clean-ups
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Oct 2016 16:26:30 +0000 (18:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Oct 2016 15:29:51 +0000 (17:29 +0200)
commitec2ebfd524447caf14e63b49b3f63117b93c7c78
treeccfa27b117ab8fb0f410672c0903b794b3b753a0
parent229ba9fd57942fb7d1bb738ab1ad21356431d952
update-done: minor clean-ups

This is a follow-up for fb8b0869a7bc30e23be175cf978df23192d59118, and makes a
couple of minor clean-up changes:

- The field name in the timestamp file is changed from "TimestampNSec=" to
  "TIMESTAMP_NSEC=". This is done simply to reflect the fact that we parse the
  file with the env var file parser, and hence the contents should better
  follow the usual capitalization of env vars, i.e. be all uppercase.

- Needless negation of the errno parameter log_error_errno() and friends has
  been removed.

- Instead of manually calculating the nsec remainder of the timestamp, use
  timespec_store().

- We now check whether we were able to write the timestamp file in full with
  fflush_and_check() the way we usually do it.
src/shared/condition.c
src/update-done/update-done.c