]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/export-raw.c
Drop RATELIMIT macros
[thirdparty/systemd.git] / src / import / export-raw.c
index c1c946cd2be1800385516daec9066a188dcf4844..57b4334a65e15c62a80630f27daa766d5ef45692 100644 (file)
@@ -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 {