diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-02 18:25:33 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-02 20:12:31 +0100 |
commit | c477ff141b875a2a98c90514b6bf23f0436d1f73 (patch) | |
tree | fb0530801b5eed094dcd2ca0a353a5b36dbac125 /src/locale | |
parent | ced58da749367fa70b00d00959272054aa7ab48a (diff) |
time: time_t is signed, and mktime() is happy to return negative time
Passing a year such as 1960 to mktime() will result in a negative return
value. This is quite confusing, as the man page claims that on failure
the call will return -1...
Given that our own usec_t type is unsigned, and we can't express times
before 1970 hence, let's consider all negative times returned by
mktime() as invalid, regardless if just -1, or anything else negative.
Diffstat (limited to 'src/locale')
0 files changed, 0 insertions, 0 deletions