From 7d1e61cab6d27ed95372a313df3cd4538cf2880e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 Nov 2022 18:29:16 +0100 Subject: tree-wide: make constant ratelimit compound actually const The compiler should recognize that these are constant expressions, but let's better make this explicit, so that the linker can safely share the initializations all over the place. --- src/import/import-fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/import') diff --git a/src/import/import-fs.c b/src/import/import-fs.c index 4e7250c02e..ca5d33c008 100644 --- a/src/import/import-fs.c +++ b/src/import/import-fs.c @@ -188,7 +188,7 @@ static int import_fs(int argc, char *argv[], void *userdata) { (void) mkdir_parents_label(dest, 0700); - progress.limit = (RateLimit) { 200*USEC_PER_MSEC, 1 }; + progress.limit = (const RateLimit) { 200*USEC_PER_MSEC, 1 }; { BLOCK_SIGNALS(SIGINT, SIGTERM); -- cgit v1.2.1