X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fx509_time_test.c;h=b6fd38a5c587a40eb29634f81cb30433d9d05735;hp=001aba54cef40ad544bb7a7a209128644a6c78d2;hb=cfacc73a055620d9d151fd083d7a23999b0dcbdb;hpb=a9dee230372d641a898ab475611d01dde4a6b525 diff --git a/test/x509_time_test.c b/test/x509_time_test.c index 001aba54ce..b6fd38a5c5 100644 --- a/test/x509_time_test.c +++ b/test/x509_time_test.c @@ -1,5 +1,5 @@ /* - * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -15,7 +15,7 @@ #include #include #include "testutil.h" -#include "e_os.h" +#include "internal/nelem.h" typedef struct { const char *data; @@ -273,7 +273,7 @@ static int test_x509_cmp_time(int idx) return 1; } -static int test_x509_cmp_time_current() +static int test_x509_cmp_time_current(void) { time_t now = time(NULL); /* Pick a day earlier and later, relative to any system clock. */ @@ -482,7 +482,7 @@ static int test_x509_time_print(int idx) return ret; } -int setup_tests() +int setup_tests(void) { ADD_TEST(test_x509_cmp_time_current); ADD_ALL_TESTS(test_x509_cmp_time, OSSL_NELEM(x509_cmp_tests));