diff options
author | tb <> | 2022-09-05 21:06:31 +0000 |
---|---|---|
committer | tb <> | 2022-09-05 21:06:31 +0000 |
commit | 7608dd1ef4e1d2656a9203e2091d53747a14679f (patch) | |
tree | cda70a930b6e462786beda42d51e130bb873b6c3 /src/regress/lib/libcrypto/bio | |
parent | 0b315a15aa761d629b59c54becaeecc44627e42e (diff) | |
download | openbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.tar.gz openbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.tar.bz2 openbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.zip |
Convert from %i to %d
Diffstat (limited to 'src/regress/lib/libcrypto/bio')
-rw-r--r-- | src/regress/lib/libcrypto/bio/biotest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/bio/biotest.c b/src/regress/lib/libcrypto/bio/biotest.c index d31e51e454..531913461a 100644 --- a/src/regress/lib/libcrypto/bio/biotest.c +++ b/src/regress/lib/libcrypto/bio/biotest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: biotest.c,v 1.8 2022/02/19 16:00:57 jsing Exp $ */ | 1 | /* $OpenBSD: biotest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014, 2022 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014, 2022 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -97,14 +97,14 @@ do_bio_get_host_ip_tests(void) | |||
97 | 97 | ||
98 | ret = BIO_get_host_ip(bgit->input, ip.c); | 98 | ret = BIO_get_host_ip(bgit->input, ip.c); |
99 | if (ret != bgit->ret) { | 99 | if (ret != bgit->ret) { |
100 | fprintf(stderr, "FAIL: test %zi (\"%s\") %s, want %s\n", | 100 | fprintf(stderr, "FAIL: test %zd (\"%s\") %s, want %s\n", |
101 | i, bgit->input, ret ? "success" : "failure", | 101 | i, bgit->input, ret ? "success" : "failure", |
102 | bgit->ret ? "success" : "failure"); | 102 | bgit->ret ? "success" : "failure"); |
103 | failed = 1; | 103 | failed = 1; |
104 | continue; | 104 | continue; |
105 | } | 105 | } |
106 | if (ret && ntohl(ip.i) != bgit->ip) { | 106 | if (ret && ntohl(ip.i) != bgit->ip) { |
107 | fprintf(stderr, "FAIL: test %zi (\"%s\") returned ip " | 107 | fprintf(stderr, "FAIL: test %zd (\"%s\") returned ip " |
108 | "%x != %x\n", i, bgit->input, | 108 | "%x != %x\n", i, bgit->input, |
109 | ntohl(ip.i), bgit->ip); | 109 | ntohl(ip.i), bgit->ip); |
110 | failed = 1; | 110 | failed = 1; |
@@ -129,14 +129,14 @@ do_bio_get_port_tests(void) | |||
129 | 129 | ||
130 | ret = BIO_get_port(bgpt->input, &port); | 130 | ret = BIO_get_port(bgpt->input, &port); |
131 | if (ret != bgpt->ret) { | 131 | if (ret != bgpt->ret) { |
132 | fprintf(stderr, "FAIL: test %zi (\"%s\") %s, want %s\n", | 132 | fprintf(stderr, "FAIL: test %zd (\"%s\") %s, want %s\n", |
133 | i, bgpt->input, ret ? "success" : "failure", | 133 | i, bgpt->input, ret ? "success" : "failure", |
134 | bgpt->ret ? "success" : "failure"); | 134 | bgpt->ret ? "success" : "failure"); |
135 | failed = 1; | 135 | failed = 1; |
136 | continue; | 136 | continue; |
137 | } | 137 | } |
138 | if (ret && port != bgpt->port) { | 138 | if (ret && port != bgpt->port) { |
139 | fprintf(stderr, "FAIL: test %zi (\"%s\") returned port " | 139 | fprintf(stderr, "FAIL: test %zd (\"%s\") returned port " |
140 | "%u != %u\n", i, bgpt->input, port, bgpt->port); | 140 | "%u != %u\n", i, bgpt->input, port, bgpt->port); |
141 | failed = 1; | 141 | failed = 1; |
142 | } | 142 | } |