diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-09-19 17:41:20 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-09-20 16:05:53 +0200 |
commit | 8c227e7f2b0c4df0b4ab7345d6a01c589e0c21d3 (patch) | |
tree | 7d04b8570cc84b2de5dc6b7b32e429585ec3fdc4 /src/import/export-tar.c | |
parent | 90b059b608d6c53c8efb23b8791190dffadd1a17 (diff) | |
download | systemd-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.c | 3 |
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 { |