Make this build cleanly even with UTF8_{putc,getc} moved from the
authorguenther <guenther@openbsd.org>
Thu, 22 May 2014 03:36:23 +0000 (03:36 +0000)
committerguenther <guenther@openbsd.org>
Thu, 22 May 2014 03:36:23 +0000 (03:36 +0000)
public header to the internal.  Make some variables unsigned to
eliminate some warnings

regress/lib/libcrypto/utf8/Makefile
regress/lib/libcrypto/utf8/utf8test.c

index 4940e60..8c9f5f8 100644 (file)
@@ -1,7 +1,9 @@
-#      $OpenBSD: Makefile,v 1.1 2014/05/18 22:04:14 guenther Exp $
+#      $OpenBSD: Makefile,v 1.2 2014/05/22 03:36:23 guenther Exp $
 
 PROG=  utf8test
+CPPFLAGS+=-I${.CURDIR}/../../../../lib/libssl/src/crypto/asn1
 LDADD= -lcrypto
 DPADD= ${LIBCRYPTO}
+WARNINGS=Yes
 
 .include <bsd.regress.mk>
index 453ab43..5da5709 100644 (file)
@@ -23,6 +23,7 @@
 #include <err.h>
 
 #include <openssl/asn1.h>
+#include "asn1_locl.h"         /* peek into the internals */
 
 #define        UNCHANGED       0xfedcba98
 
@@ -39,7 +40,8 @@ main(void)
        unsigned char testbuf[] = "012345";
        const unsigned char zerobuf[sizeof testbuf] = { 0 };
        unsigned long value;
-       int i, j, k, l, ret;
+       unsigned int i, j, k, l;
+       int ret;
 
        /*
         * First, verify UTF8_getc()