diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bio/biotest.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/bio/biotest.c b/src/regress/lib/libcrypto/bio/biotest.c index 75dbf8c4fe..c150c0b54e 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.3 2014/07/08 14:17:38 bcook Exp $ */ | 1 | /* $OpenBSD: biotest.c,v 1.4 2014/07/11 08:48:52 bcook Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -17,6 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | #include <sys/types.h> | 18 | #include <sys/types.h> |
| 19 | 19 | ||
| 20 | #include <stdint.h> | ||
| 20 | #include <stdlib.h> | 21 | #include <stdlib.h> |
| 21 | #include <string.h> | 22 | #include <string.h> |
| 22 | 23 | ||
| @@ -27,7 +28,7 @@ | |||
| 27 | 28 | ||
| 28 | struct bio_get_host_ip_test { | 29 | struct bio_get_host_ip_test { |
| 29 | char *input; | 30 | char *input; |
| 30 | u_int32_t ip; | 31 | uint32_t ip; |
| 31 | int ret; | 32 | int ret; |
| 32 | }; | 33 | }; |
| 33 | 34 | ||
| @@ -97,10 +98,10 @@ do_bio_get_host_ip_tests(void) | |||
| 97 | failed = 1; | 98 | failed = 1; |
| 98 | continue; | 99 | continue; |
| 99 | } | 100 | } |
| 100 | if (ret && ntohl(*((u_int32_t *)ip)) != bgit->ip) { | 101 | if (ret && ntohl(*((uint32_t *)ip)) != bgit->ip) { |
| 101 | fprintf(stderr, "FAIL: test %zi (\"%s\") returned ip " | 102 | fprintf(stderr, "FAIL: test %zi (\"%s\") returned ip " |
| 102 | "%x != %x\n", i, bgit->input, | 103 | "%x != %x\n", i, bgit->input, |
| 103 | ntohl(*((u_int32_t *)ip)), bgit->ip); | 104 | ntohl(*((uint32_t *)ip)), bgit->ip); |
| 104 | failed = 1; | 105 | failed = 1; |
| 105 | } | 106 | } |
| 106 | } | 107 | } |
