]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-event-flatten - Fix format string specifier for usec time
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 5 Jan 2022 01:25:34 +0000 (01:25 +0000)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 5 Jan 2022 11:25:33 +0000 (11:25 +0000)
src/lib/test-event-flatten.c

index c3a5b3cc87e661f3a5285dc76d9c7aa70d1b9df6..e2a77a80ecd01bbdce2ab5a8a3661ac23aea5f59 100644 (file)
@@ -354,11 +354,11 @@ static void test_event_strlist_flatten(void)
 
        event_export(event, dest);
        /* see if it matches .. */
-       const char *reference = t_strdup_printf("%"PRIdTIME_T"\t%zu"
+       const char *reference = t_strdup_printf("%"PRIdTIME_T"\t%u"
                                                "\tstest-event-flatten.c"
                                                "\t%u\tLtest\t3\tl3\tl1\tl2",
                                        event->tv_created.tv_sec,
-                                       event->tv_created.tv_usec,
+                                       (unsigned int)event->tv_created.tv_usec,
                                        line);
        test_assert_strcmp(str_c(dest), reference);