summaryrefslogtreecommitdiff
path: root/src/import/curl-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-25 03:14:09 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-25 03:14:09 +0100
commit5fa89b2cb366d533e56a9b7a9ce548480776f973 (patch)
tree9f928cc75c2ef6f8515654cd855a06a2769fb025 /src/import/curl-util.c
parentbd69054b0987b40a0df87d40772893f6f8a078da (diff)
import: prefer usec_t over time_t
Diffstat (limited to 'src/import/curl-util.c')
-rw-r--r--src/import/curl-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/curl-util.c b/src/import/curl-util.c
index 78a58a8a6d..6a6b1c0004 100644
--- a/src/import/curl-util.c
+++ b/src/import/curl-util.c
@@ -414,7 +414,7 @@ int curl_header_strdup(const void *contents, size_t sz, const char *field, char
return 1;
}
-int curl_parse_http_time(const char *t, time_t *ret) {
+int curl_parse_http_time(const char *t, usec_t *ret) {
struct tm tm;
time_t v;
@@ -441,6 +441,6 @@ int curl_parse_http_time(const char *t, time_t *ret) {
if (v == (time_t) -1)
return -EINVAL;
- *ret = v;
+ *ret = (usec_t) v * USEC_PER_SEC;
return 0;
}