X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=test%2Fd2i_test.c;h=afea2dcb9f3dde163ddbb8f2c5daba116e7ff5de;hp=0901b5d9fb3e679a0118539166fb78cf4ee6ffac;hb=3830c1943b6b7411134a28c5801e57d1b5b2dca2;hpb=ad887416f1e59c3294a7d8f83a0ca77120523b4a diff --git a/test/d2i_test.c b/test/d2i_test.c index 0901b5d9fb..afea2dcb9f 100644 --- a/test/d2i_test.c +++ b/test/d2i_test.c @@ -20,7 +20,7 @@ #include #include #include -#include "e_os.h" +#include "internal/nelem.h" static const ASN1_ITEM *item_type; static const char *test_file; @@ -41,7 +41,7 @@ typedef struct { static expected_error_t expected_error = ASN1_UNKNOWN; -static int test_bad_asn1() +static int test_bad_asn1(void) { BIO *bio = NULL; ASN1_VALUE *value = NULL; @@ -67,7 +67,7 @@ static int test_bad_asn1() * performs sanity checks on the input and can reject it before the * decoder is called. */ - len = BIO_read(bio, buf, sizeof buf); + len = BIO_read(bio, buf, sizeof(buf)); if (!TEST_int_ge(len, 0)) goto err;