diff options
author | miod <> | 2014-06-01 11:11:46 +0000 |
---|---|---|
committer | miod <> | 2014-06-01 11:11:46 +0000 |
commit | 8feed9c0b8cf35589d2442426a7f5c022f055e9d (patch) | |
tree | 764f224e0d43a606966be44aaee32715ee508747 /src/regress/lib/libcrypto/chacha | |
parent | e356b447e74b757810a71e2bf8e431b22fd6e328 (diff) | |
download | openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.tar.gz openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.tar.bz2 openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.zip |
Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.
Diffstat (limited to 'src/regress/lib/libcrypto/chacha')
-rw-r--r-- | src/regress/lib/libcrypto/chacha/Makefile | 4 | ||||
-rw-r--r-- | src/regress/lib/libcrypto/chacha/chachatest.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/chacha/Makefile b/src/regress/lib/libcrypto/chacha/Makefile index b09dda17a1..182879c693 100644 --- a/src/regress/lib/libcrypto/chacha/Makefile +++ b/src/regress/lib/libcrypto/chacha/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/01 13:15:22 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= chachatest | 3 | PROG= chachatest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/chacha/chachatest.c b/src/regress/lib/libcrypto/chacha/chachatest.c index ff67fbf59a..aa10939d7e 100644 --- a/src/regress/lib/libcrypto/chacha/chachatest.c +++ b/src/regress/lib/libcrypto/chacha/chachatest.c | |||
@@ -227,7 +227,7 @@ main(int argc, char **argv) | |||
227 | { | 227 | { |
228 | struct chacha_tv *tv; | 228 | struct chacha_tv *tv; |
229 | unsigned char *in, *out; | 229 | unsigned char *in, *out; |
230 | int i, j; | 230 | size_t i, j; |
231 | 231 | ||
232 | for (i = 0; i < N_VECTORS; i++) { | 232 | for (i = 0; i < N_VECTORS; i++) { |
233 | tv = &chacha_test_vectors[i]; | 233 | tv = &chacha_test_vectors[i]; |