diff options
author | beck <> | 2017-05-08 20:15:34 +0000 |
---|---|---|
committer | beck <> | 2017-05-08 20:15:34 +0000 |
commit | eb05f97e0974a99799b842de278f502507776c43 (patch) | |
tree | 41f5353190bcbff2053bffae26485073dc26b624 | |
parent | fb09f8c3626aa8b0bdcc66f2d74b1670959801d6 (diff) | |
download | openbsd-eb05f97e0974a99799b842de278f502507776c43.tar.gz openbsd-eb05f97e0974a99799b842de278f502507776c43.tar.bz2 openbsd-eb05f97e0974a99799b842de278f502507776c43.zip |
Print size_t's correctly.
Fix from Jonas 'Sortie' Termansen <sortie@maxsi.org>
-rw-r--r-- | src/usr.sbin/ocspcheck/ocspcheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.sbin/ocspcheck/ocspcheck.c b/src/usr.sbin/ocspcheck/ocspcheck.c index a923024055..df14265370 100644 --- a/src/usr.sbin/ocspcheck/ocspcheck.c +++ b/src/usr.sbin/ocspcheck/ocspcheck.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ocspcheck.c,v 1.20 2017/03/27 23:59:08 deraadt Exp $ */ | 1 | /* $OpenBSD: ocspcheck.c,v 1.21 2017/05/08 20:15:34 beck Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2017 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2017 Bob Beck <beck@openbsd.org> |
@@ -564,7 +564,7 @@ main(int argc, char **argv) | |||
564 | if ((request = ocsp_request_new_from_cert(certfile, nonce)) == NULL) | 564 | if ((request = ocsp_request_new_from_cert(certfile, nonce)) == NULL) |
565 | exit(1); | 565 | exit(1); |
566 | 566 | ||
567 | dspew("Built an %ld byte ocsp request\n", request->size); | 567 | dspew("Built an %zu byte ocsp request\n", request->size); |
568 | 568 | ||
569 | if ((host = url2host(request->url, &port, &path)) == NULL) | 569 | if ((host = url2host(request->url, &port, &path)) == NULL) |
570 | errx(1, "Invalid OCSP url %s from %s", request->url, | 570 | errx(1, "Invalid OCSP url %s from %s", request->url, |
@@ -601,7 +601,7 @@ main(int argc, char **argv) | |||
601 | dspew("Server at %s returns:\n", host); | 601 | dspew("Server at %s returns:\n", host); |
602 | for (i = 0; i < httphsz; i++) | 602 | for (i = 0; i < httphsz; i++) |
603 | dspew(" [%s]=[%s]\n", httph[i].key, httph[i].val); | 603 | dspew(" [%s]=[%s]\n", httph[i].key, httph[i].val); |
604 | dspew(" [Body]=[%ld bytes]\n", hget->bodypartsz); | 604 | dspew(" [Body]=[%zu bytes]\n", hget->bodypartsz); |
605 | if (hget->bodypartsz <= 0) | 605 | if (hget->bodypartsz <= 0) |
606 | errx(1, "No body in reply from %s", host); | 606 | errx(1, "No body in reply from %s", host); |
607 | 607 | ||