parse-duration: small doc tweak and coding aesthetics issue.
authorBruce Korb <bkorb@gnu.org>
Mon, 29 Dec 2008 21:00:19 +0000 (22:00 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 29 Dec 2008 21:00:19 +0000 (22:00 +0100)
commit2363a9f8faa3abfdfde6adec5c1dc0c816016731
tree78294889ef92c06a6123da3cd929d2edb6960c51
parent3cb753d3f0109c172d5c5e9c595b287b034bd577
parse-duration: small doc tweak and coding aesthetics issue.

* lib/parse-duration.h: non-iso form accepts years, months weeks, too
* lib/parse-duration.c: use a switch instead of cascading if's.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
lib/parse-duration.c
lib/parse-duration.h