summaryrefslogtreecommitdiff
path: root/src/import/export-raw.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-raw.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-raw.c')
-rw-r--r--src/import/export-raw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/import/export-raw.c b/src/import/export-raw.c
index c1c946cd2b..57b4334a65 100644
--- a/src/import/export-raw.c
+++ b/src/import/export-raw.c
@@ -96,10 +96,9 @@ int raw_export_new(
.on_finished = on_finished,
.userdata = userdata,
.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 {