]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: test-mech - Fix type mismatch
authorAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 13 Aug 2020 16:13:49 +0000 (19:13 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Mon, 24 Aug 2020 07:22:41 +0000 (07:22 +0000)
src/auth/test-mech.c

index 0a030a2be0683c2bfb9582115a8fe6238ea424a1..0a22ff46d02fd91765ddfb20c9f3513f00a5b657 100644 (file)
@@ -192,7 +192,7 @@ static void test_mech_handle_challenge(struct auth_request *request,
 }
 
 static inline const unsigned char *
-test_mech_construct_apop_challenge(unsigned int connect_uid, unsigned long *len_r)
+test_mech_construct_apop_challenge(unsigned int connect_uid, size_t *len_r)
 {
        string_t *apop_challenge = t_str_new(128);
 
@@ -323,7 +323,7 @@ static void test_mechs(void)
                struct test_case *test_case = &tests[running_test];
                const struct mech_module *mech = test_case->mech;
                struct auth_request *request;
-               const char *testname = t_strdup_printf("auth mech %s %d/%lu",
+               const char *testname = t_strdup_printf("auth mech %s %d/%zu",
                                                       mech->mech_name,
                                                       running_test+1,
                                                       N_ELEMENTS(tests));