]> eyrie.org Git - kerberos/krb5-sync.git/commitdiff
Cast password error lengths for Heimdal
authorRuss Allbery <eagle@eyrie.org>
Sat, 7 Dec 2013 00:44:37 +0000 (16:44 -0800)
committerRuss Allbery <eagle@eyrie.org>
Sat, 7 Dec 2013 00:44:37 +0000 (16:44 -0800)
The length fields are size_t with Heimdal, so cast them to an int
so that printf is happy.

plugin/ad.c

index b05471461b0cbec9ac5c91346f2d75ee8d1572dd..38181adb4ff846af34178653ebff013a86a3c408 100644 (file)
@@ -218,10 +218,10 @@ sync_ad_chpass(kadm5_hook_modinfo *config, krb5_context ctx,
     if (result_code != 0) {
         code = sync_error_generic(ctx, "password change failed for %s: (%d)"
                                   " %.*s%s%.*s", target, result_code,
-                                  result_code_string.length,
+                                  (int) result_code_string.length,
                                   (char *) result_code_string.data,
                                   result_string.length ? ": " : "",
-                                  result_string.length,
+                                  (int) result_string.length,
                                   (char *) result_string.data);
         goto done;
     }