提交 0b99d4f1 编写于 作者: D Dr. Stephen Henson

Remove unnecessary casts and avoid some warnings with gcc 4.2.

上级 3c07d3a3
......@@ -97,12 +97,12 @@ static char *pt(unsigned char *md);
int main(int argc, char *argv[])
{
int i,err=0;
unsigned char **P,**R;
char **P,**R;
char *p;
unsigned char md[MD4_DIGEST_LENGTH];
P=(unsigned char **)test;
R=(unsigned char **)ret;
P=test;
R=ret;
i=1;
while (*P != NULL)
{
......
......@@ -97,12 +97,12 @@ static char *pt(unsigned char *md);
int main(int argc, char *argv[])
{
int i,err=0;
unsigned char **P,**R;
char **P,**R;
char *p;
unsigned char md[MD5_DIGEST_LENGTH];
P=(unsigned char **)test;
R=(unsigned char **)ret;
P=test;
R=ret;
i=1;
while (*P != NULL)
{
......
......@@ -103,12 +103,12 @@ static char *pt(unsigned char *md);
int main(int argc, char *argv[])
{
int i,err=0;
unsigned char **P,**R;
char **P,**R;
char *p;
unsigned char md[RIPEMD160_DIGEST_LENGTH];
P=(unsigned char **)test;
R=(unsigned char **)ret;
P=test;
R=ret;
i=1;
while (*P != NULL)
{
......
......@@ -106,7 +106,7 @@ static char *pt(unsigned char *md);
int main(int argc, char *argv[])
{
int i,err=0;
unsigned char **P,**R;
char **P,**R;
static unsigned char buf[1000];
char *p,*r;
EVP_MD_CTX c;
......@@ -118,8 +118,8 @@ int main(int argc, char *argv[])
#endif
EVP_MD_CTX_init(&c);
P=(unsigned char **)test;
R=(unsigned char **)ret;
P=test;
R=ret;
i=1;
while (*P != NULL)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册