projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bss_dgram.c: fix compilation failure and warning on Windows with
[oweals/openssl.git]
/
crypto
/
md2
/
md2.c
diff --git
a/crypto/md2/md2.c
b/crypto/md2/md2.c
index 7f3ab64a431c4bb355a62f662587bf7a60c4c986..f4d6f62264b37e0f211be7aa7e378aa7e1673c98 100644
(file)
--- a/
crypto/md2/md2.c
+++ b/
crypto/md2/md2.c
@@
-58,25
+58,15
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include
"md2.h"
+#include
<openssl/md2.h>
#define BUFSIZE 1024*16
#define BUFSIZE 1024*16
-#ifndef NOPROTO
void do_fp(FILE *f);
void pt(unsigned char *md);
int read(int, void *, unsigned int);
void exit(int);
void do_fp(FILE *f);
void pt(unsigned char *md);
int read(int, void *, unsigned int);
void exit(int);
-#else
-void do_fp();
-void pt();
-int read();
-void exit();
-#endif
-
-int main(argc, argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
{
int i,err=0;
FILE *IN;
{
int i,err=0;
FILE *IN;
@@
-105,8
+95,7
@@
char *argv[];
return(err);
}
return(err);
}
-void do_fp(f)
-FILE *f;
+void do_fp(FILE *f)
{
MD2_CTX c;
unsigned char md[MD2_DIGEST_LENGTH];
{
MD2_CTX c;
unsigned char md[MD2_DIGEST_LENGTH];
@@
-125,8
+114,7
@@
FILE *f;
pt(md);
}
pt(md);
}
-void pt(md)
-unsigned char *md;
+void pt(unsigned char *md)
{
int i;
{
int i;