diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-25 03:14:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-25 03:14:09 +0100 |
commit | 5fa89b2cb366d533e56a9b7a9ce548480776f973 (patch) | |
tree | 9f928cc75c2ef6f8515654cd855a06a2769fb025 /src/import/import-gpt.c | |
parent | bd69054b0987b40a0df87d40772893f6f8a078da (diff) |
import: prefer usec_t over time_t
Diffstat (limited to 'src/import/import-gpt.c')
-rw-r--r-- | src/import/import-gpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/import-gpt.c b/src/import/import-gpt.c index eda6dcacbc..503f1e64cf 100644 --- a/src/import/import-gpt.c +++ b/src/import/import-gpt.c @@ -46,7 +46,7 @@ struct GptImportFile { uint64_t content_length; uint64_t written; - time_t mtime; + usec_t mtime; bool force_local; bool done; @@ -167,7 +167,7 @@ static void gpt_import_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result if (f->mtime != 0) { struct timespec ut[2]; - timespec_store(&ut[0], (usec_t) f->mtime * USEC_PER_SEC); + timespec_store(&ut[0], f->mtime); ut[1] = ut[0]; (void) futimens(f->disk_fd, ut); |