diff --git a/lib/hx509/revoke.c b/lib/hx509/revoke.c index 4b53a6fc7..2bd6e68ad 100644 --- a/lib/hx509/revoke.c +++ b/lib/hx509/revoke.c @@ -1151,7 +1151,7 @@ print_ocsp(hx509_context context, struct revoke_ocsp *ocsp, FILE *out) status = "element unknown"; } - fprintf(out, "\t%zu. status: %s\n", i, status); + fprintf(out, "\t%llu. status: %s\n", (unsigned long long)i, status); fprintf(out, "\tthisUpdate: %s\n", printable_time(ocsp->ocsp.tbsResponseData.responses.val[i].thisUpdate)); diff --git a/lib/krb5/changepw.c b/lib/krb5/changepw.c index 10479dcd5..bc2d094a3 100644 --- a/lib/krb5/changepw.c +++ b/lib/krb5/changepw.c @@ -330,7 +330,7 @@ process_reply (krb5_context context, if (len < 6) { str2data (result_string, "server %s sent to too short message " - "(%zu bytes)", host, len); + "(%llu bytes)", host, (unsigned long long)len); *result_code = KRB5_KPASSWD_MALFORMED; return 0; } diff --git a/lib/libedit/src/fgetln.c b/lib/libedit/src/fgetln.c index 6c4f320c1..ea91a187d 100644 --- a/lib/libedit/src/fgetln.c +++ b/lib/libedit/src/fgetln.c @@ -99,7 +99,7 @@ main(int argc, char *argv[]) size_t len; while ((p = fgetln(stdin, &len)) != NULL) { - (void)printf("%zu %s", len, p); + (void)printf("%llu %s", (unsigned long long)len, p); free(p); } return 0; diff --git a/lib/libedit/src/filecomplete.c b/lib/libedit/src/filecomplete.c index 1dcf75bd9..da13eff68 100644 --- a/lib/libedit/src/filecomplete.c +++ b/lib/libedit/src/filecomplete.c @@ -530,8 +530,8 @@ fn_complete(EditLine *el, */ if (matches_num > query_items) { (void)fprintf(el->el_outfile, - "Display all %zu possibilities? (y or n) ", - matches_num); + "Display all %llu possibilities? (y or n) ", + (unsigned long long)matches_num); (void)fflush(el->el_outfile); if (getc(stdin) != 'y') match_display = 0;