summaryrefslogtreecommitdiff
path: root/src/import/export-tar.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-09-19 17:41:20 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-09-20 16:05:53 +0200
commit8c227e7f2b0c4df0b4ab7345d6a01c589e0c21d3 (patch)
tree7d04b8570cc84b2de5dc6b7b32e429585ec3fdc4 /src/import/export-tar.c
parent90b059b608d6c53c8efb23b8791190dffadd1a17 (diff)
downloadsystemd-8c227e7f2b0c4df0b4ab7345d6a01c589e0c21d3.tar.gz
Drop RATELIMIT macros
Using plain structure initialization is both shorter _and_ more clearer. We get type safety for free.
Diffstat (limited to 'src/import/export-tar.c')
-rw-r--r--src/import/export-tar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/import/export-tar.c b/src/import/export-tar.c
index ed546769f3..b66b5ee37c 100644
--- a/src/import/export-tar.c
+++ b/src/import/export-tar.c
@@ -99,10 +99,9 @@ int tar_export_new(
.userdata = userdata,
.quota_referenced = (uint64_t) -1,
.last_percent = (unsigned) -1,
+ .progress_rate_limit = { 100 * USEC_PER_MSEC, 1 },
};
- RATELIMIT_INIT(e->progress_rate_limit, 100 * USEC_PER_MSEC, 1);
-
if (event)
e->event = sd_event_ref(event);
else {