Avoid some warnings (on silly compilers).
authorBodo Möller <bodo@openssl.org>
Sat, 12 Jun 1999 09:52:44 +0000 (09:52 +0000)
committerBodo Möller <bodo@openssl.org>
Sat, 12 Jun 1999 09:52:44 +0000 (09:52 +0000)
crypto/bn/bn_print.c
crypto/des/destest.c
crypto/dh/dhtest.c
crypto/dsa/dsatest.c
crypto/sha/sha1dgst.c
crypto/sha/sha_dgst.c

index 8b349b52d470b059c1be1000cab653f5e902f445..91418a23512c90a7d5275a8fb807721a093aacfd 100644 (file)
@@ -62,7 +62,7 @@
 #include <openssl/buffer.h>
 #include "bn_lcl.h"
 
-const static char *Hex="0123456789ABCDEF";
+static const char *Hex="0123456789ABCDEF";
 
 /* Must 'Free' the returned data */
 char *BN_bn2hex(BIGNUM *a)
index d92fabdf3f41a34d9afefde973d8117973492f63..5a04fc92983854bd1ae4c1f3a645ce249535b1c5 100644 (file)
@@ -741,25 +741,25 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]);
        if (lqret[0] != 0x327eba8dL)
                {
                printf("quad_cksum error, out[0] %08lx is not %08lx\n",
-                       (unsigned long)lqret[0],0x327eba8dL);
+                       (unsigned long)lqret[0],0x327eba8dUL);
                err=1;
                }
        if (lqret[1] != 0x201a49ccL)
                {
                printf("quad_cksum error, out[1] %08lx is not %08lx\n",
-                       (unsigned long)lqret[1],0x201a49ccL);
+                       (unsigned long)lqret[1],0x201a49ccUL);
                err=1;
                }
        if (lqret[2] != 0x70d7a63aL)
                {
                printf("quad_cksum error, out[2] %08lx is not %08lx\n",
-                       (unsigned long)lqret[2],0x70d7a63aL);
+                       (unsigned long)lqret[2],0x70d7a63aUL);
                err=1;
                }
        if (lqret[3] != 0x501c2c26L)
                {
                printf("quad_cksum error, out[3] %08lx is not %08lx\n",
-                       (unsigned long)lqret[3],0x501c2c26L);
+                       (unsigned long)lqret[3],0x501c2c26UL);
                err=1;
                }
 #endif
index a3f4692eca9d76079ec821579d66ef5c59d7a4db..770331971f2ffd09fe0b9553c128c58ee8b2742d 100644 (file)
@@ -180,7 +180,7 @@ static void MS_CALLBACK cb(int p, int n, void *arg)
        if (p == 2) c='*';
        if (p == 3) c='\n';
        BIO_write((BIO *)arg,&c,1);
-       BIO_flush((BIO *)arg);
+       (void)BIO_flush((BIO *)arg);
 #ifdef LINT
        p=n;
 #endif
index 363eab62178c87b0fbb40918266f36cce322d0ed..38dd0c0c4dc8a0466b1c87c19e5ff38293a5d028 100644 (file)
@@ -206,7 +206,7 @@ static void MS_CALLBACK dsa_cb(int p, int n, char *arg)
        if (p == 2) { c='*'; ok++; }
        if (p == 3) c='\n';
        BIO_write((BIO *)arg,&c,1);
-       BIO_flush((BIO *)arg);
+       (void)BIO_flush((BIO *)arg);
 
        if (!ok && (p == 0) && (num > 1))
                {
index af8d9aed8aa8bd6b1dca77aaa2817c0536897f11..66e885dd76d2d243172cb31e1705f76a67b6f009 100644 (file)
@@ -114,7 +114,7 @@ void SHA1_Init(SHA_CTX *c)
        c->num=0;
        }
 
-void SHA1_Update(SHA_CTX *c, const register unsigned char *data,
+void SHA1_Update(SHA_CTX *c, register const unsigned char *data,
             unsigned long len)
        {
        register SHA_LONG *p;
index f4aa5a51442c540ca8c01071e3587f78ba60e37a..4df535360f35e254d8af90fb5449430456e632c7 100644 (file)
@@ -109,7 +109,7 @@ void SHA_Init(SHA_CTX *c)
        c->num=0;
        }
 
-void SHA_Update(SHA_CTX *c, const register unsigned char *data,
+void SHA_Update(SHA_CTX *c, register const unsigned char *data,
                unsigned long len)
        {
        register SHA_LONG *p;