summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/engine/enginetest.c
diff options
context:
space:
mode:
authortb <>2022-09-05 21:06:31 +0000
committertb <>2022-09-05 21:06:31 +0000
commit7608dd1ef4e1d2656a9203e2091d53747a14679f (patch)
treecda70a930b6e462786beda42d51e130bb873b6c3 /src/regress/lib/libcrypto/engine/enginetest.c
parent0b315a15aa761d629b59c54becaeecc44627e42e (diff)
downloadopenbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.tar.gz
openbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.tar.bz2
openbsd-7608dd1ef4e1d2656a9203e2091d53747a14679f.zip
Convert from %i to %d
Diffstat (limited to 'src/regress/lib/libcrypto/engine/enginetest.c')
-rw-r--r--src/regress/lib/libcrypto/engine/enginetest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/engine/enginetest.c b/src/regress/lib/libcrypto/engine/enginetest.c
index 123866259b..40e598ab77 100644
--- a/src/regress/lib/libcrypto/engine/enginetest.c
+++ b/src/regress/lib/libcrypto/engine/enginetest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enginetest.c,v 1.8 2018/07/17 17:06:49 tb Exp $ */ 1/* $OpenBSD: enginetest.c,v 1.9 2022/09/05 21:06:31 tb Exp $ */
2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL 2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -73,7 +73,7 @@ static void display_engine_list(void)
73 loop = 0; 73 loop = 0;
74 printf("listing available engine types\n"); 74 printf("listing available engine types\n");
75 while (h) { 75 while (h) {
76 printf("engine %i, id = \"%s\", name = \"%s\"\n", 76 printf("engine %d, id = \"%s\", name = \"%s\"\n",
77 loop++, ENGINE_get_id(h), ENGINE_get_name(h)); 77 loop++, ENGINE_get_id(h), ENGINE_get_name(h));
78 h = ENGINE_get_next(h); 78 h = ENGINE_get_next(h);
79 } 79 }
@@ -188,9 +188,9 @@ int main(int argc, char *argv[])
188 188
189 printf("About to beef up the engine-type list\n"); 189 printf("About to beef up the engine-type list\n");
190 for (loop = 0; loop < 512; loop++) { 190 for (loop = 0; loop < 512; loop++) {
191 if (asprintf(&id, "id%i", loop) == -1) 191 if (asprintf(&id, "id%d", loop) == -1)
192 goto end; 192 goto end;
193 if (asprintf(&name, "Fake engine type %i", loop) == -1) 193 if (asprintf(&name, "Fake engine type %d", loop) == -1)
194 goto end; 194 goto end;
195 195
196 if (((block[loop] = ENGINE_new()) == NULL) || 196 if (((block[loop] = ENGINE_new()) == NULL) ||
@@ -203,7 +203,7 @@ int main(int argc, char *argv[])
203 203
204 for (loop = 0; loop < 512; loop++) { 204 for (loop = 0; loop < 512; loop++) {
205 if (!ENGINE_add(block[loop])) { 205 if (!ENGINE_add(block[loop])) {
206 printf("\nAdding stopped at %i, (%s,%s)\n", 206 printf("\nAdding stopped at %d, (%s,%s)\n",
207 loop, ENGINE_get_id(block[loop]), 207 loop, ENGINE_get_id(block[loop]),
208 ENGINE_get_name(block[loop])); 208 ENGINE_get_name(block[loop]));
209 break; 209 break;