summaryrefslogtreecommitdiff
path: root/src/shared/time-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-02 20:38:16 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-03 20:12:57 +0200
commit7f602784de4fd378120e8ebfe6d830862b9cae03 (patch)
treee10d14f7b9a3154097b5f2cc2cc92ff0028101ed /src/shared/time-util.h
parent574d5f2dfc25226afc718aa5ba1a145fe5cad221 (diff)
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.
Diffstat (limited to 'src/shared/time-util.h')
-rw-r--r--src/shared/time-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/time-util.h b/src/shared/time-util.h
index ec263c1a19..2e3b0f5744 100644
--- a/src/shared/time-util.h
+++ b/src/shared/time-util.h
@@ -80,5 +80,5 @@ void dual_timestamp_deserialize(const char *value, dual_timestamp *t);
int parse_timestamp(const char *t, usec_t *usec);
-int parse_usec(const char *t, usec_t *usec);
+int parse_sec(const char *t, usec_t *usec);
int parse_nsec(const char *t, nsec_t *nsec);