Avoid some warnings (on silly compilers).

This commit is contained in:
Bodo Möller 1999-06-12 09:52:44 +00:00
parent 5b5dd0c057
commit e0f12c41de
6 changed files with 9 additions and 9 deletions

View File

@ -62,7 +62,7 @@
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include "bn_lcl.h" #include "bn_lcl.h"
const static char *Hex="0123456789ABCDEF"; static const char *Hex="0123456789ABCDEF";
/* Must 'Free' the returned data */ /* Must 'Free' the returned data */
char *BN_bn2hex(BIGNUM *a) char *BN_bn2hex(BIGNUM *a)

View File

@ -741,25 +741,25 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]);
if (lqret[0] != 0x327eba8dL) if (lqret[0] != 0x327eba8dL)
{ {
printf("quad_cksum error, out[0] %08lx is not %08lx\n", printf("quad_cksum error, out[0] %08lx is not %08lx\n",
(unsigned long)lqret[0],0x327eba8dL); (unsigned long)lqret[0],0x327eba8dUL);
err=1; err=1;
} }
if (lqret[1] != 0x201a49ccL) if (lqret[1] != 0x201a49ccL)
{ {
printf("quad_cksum error, out[1] %08lx is not %08lx\n", printf("quad_cksum error, out[1] %08lx is not %08lx\n",
(unsigned long)lqret[1],0x201a49ccL); (unsigned long)lqret[1],0x201a49ccUL);
err=1; err=1;
} }
if (lqret[2] != 0x70d7a63aL) if (lqret[2] != 0x70d7a63aL)
{ {
printf("quad_cksum error, out[2] %08lx is not %08lx\n", printf("quad_cksum error, out[2] %08lx is not %08lx\n",
(unsigned long)lqret[2],0x70d7a63aL); (unsigned long)lqret[2],0x70d7a63aUL);
err=1; err=1;
} }
if (lqret[3] != 0x501c2c26L) if (lqret[3] != 0x501c2c26L)
{ {
printf("quad_cksum error, out[3] %08lx is not %08lx\n", printf("quad_cksum error, out[3] %08lx is not %08lx\n",
(unsigned long)lqret[3],0x501c2c26L); (unsigned long)lqret[3],0x501c2c26UL);
err=1; err=1;
} }
#endif #endif

View File

@ -180,7 +180,7 @@ static void MS_CALLBACK cb(int p, int n, void *arg)
if (p == 2) c='*'; if (p == 2) c='*';
if (p == 3) c='\n'; if (p == 3) c='\n';
BIO_write((BIO *)arg,&c,1); BIO_write((BIO *)arg,&c,1);
BIO_flush((BIO *)arg); (void)BIO_flush((BIO *)arg);
#ifdef LINT #ifdef LINT
p=n; p=n;
#endif #endif

View File

@ -206,7 +206,7 @@ static void MS_CALLBACK dsa_cb(int p, int n, char *arg)
if (p == 2) { c='*'; ok++; } if (p == 2) { c='*'; ok++; }
if (p == 3) c='\n'; if (p == 3) c='\n';
BIO_write((BIO *)arg,&c,1); BIO_write((BIO *)arg,&c,1);
BIO_flush((BIO *)arg); (void)BIO_flush((BIO *)arg);
if (!ok && (p == 0) && (num > 1)) if (!ok && (p == 0) && (num > 1))
{ {

View File

@ -114,7 +114,7 @@ void SHA1_Init(SHA_CTX *c)
c->num=0; 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) unsigned long len)
{ {
register SHA_LONG *p; register SHA_LONG *p;

View File

@ -109,7 +109,7 @@ void SHA_Init(SHA_CTX *c)
c->num=0; 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) unsigned long len)
{ {
register SHA_LONG *p; register SHA_LONG *p;