chiark / gitweb /
util: rename parse_usec() to parse_sec() sinds the default unit is seconds
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Apr 2013 18:38:16 +0000 (20:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 3 Apr 2013 18:12:57 +0000 (20:12 +0200)
commit7f602784de4fd378120e8ebfe6d830862b9cae03
treee10d14f7b9a3154097b5f2cc2cc92ff0028101ed
parent574d5f2dfc25226afc718aa5ba1a145fe5cad221
util: rename parse_usec() to parse_sec() sinds the default unit is seconds

Internally we store all time values in usec_t, however parse_usec()
actually was used mostly to parse values in seconds (unless explicit
units were specified to define a different unit). Hence, be clear about
this and name the function about what we pass into it, not what we get
out of it.
16 files changed:
src/ask-password/ask-password.c
src/cgtop/cgtop.c
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/main.c
src/core/mount.c
src/cryptsetup/cryptsetup.c
src/journal/journalctl.c
src/journal/journald-gperf.gperf
src/login/logind-gperf.gperf
src/readahead/readahead.c
src/shared/conf-parser.c
src/shared/conf-parser.h
src/shared/time-util.c
src/shared/time-util.h
src/tmpfiles/tmpfiles.c