projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct warnings.
[oweals/openssl.git]
/
crypto
/
bio
/
bf_null.c
diff --git
a/crypto/bio/bf_null.c
b/crypto/bio/bf_null.c
index a47a65741a198384165c2b6e803552a5859e3427..3254a55dce7fcf213e822f24f3b2f752b5d92906 100644
(file)
--- a/
crypto/bio/bf_null.c
+++ b/
crypto/bio/bf_null.c
@@
-59,13
+59,12
@@
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
#include <stdio.h>
#include <errno.h>
#include "cryptlib.h"
-#include
"bio.h"
-#include
"evp.h"
+#include
<openssl/bio.h>
+#include
<openssl/evp.h>
/* BIO_put and BIO_get both add to the digest,
* BIO_gets returns the digest */
/* BIO_put and BIO_get both add to the digest,
* BIO_gets returns the digest */
-#ifndef NOPROTO
static int nullf_write(BIO *h,char *buf,int num);
static int nullf_read(BIO *h,char *buf,int size);
static int nullf_puts(BIO *h,char *str);
static int nullf_write(BIO *h,char *buf,int num);
static int nullf_read(BIO *h,char *buf,int size);
static int nullf_puts(BIO *h,char *str);
@@
-73,16
+72,6
@@
static int nullf_gets(BIO *h,char *str,int size);
static long nullf_ctrl(BIO *h,int cmd,long arg1,char *arg2);
static int nullf_new(BIO *h);
static int nullf_free(BIO *data);
static long nullf_ctrl(BIO *h,int cmd,long arg1,char *arg2);
static int nullf_new(BIO *h);
static int nullf_free(BIO *data);
-#else
-static int nullf_write();
-static int nullf_read();
-static int nullf_puts();
-static int nullf_gets();
-static long nullf_ctrl();
-static int nullf_new();
-static int nullf_free();
-#endif
-
static BIO_METHOD methods_nullf=
{
BIO_TYPE_NULL_FILTER,
static BIO_METHOD methods_nullf=
{
BIO_TYPE_NULL_FILTER,
@@
-96,13
+85,12
@@
static BIO_METHOD methods_nullf=
nullf_free,
};
nullf_free,
};
-BIO_METHOD *BIO_f_null()
+BIO_METHOD *BIO_f_null(
void
)
{
return(&methods_nullf);
}
{
return(&methods_nullf);
}
-static int nullf_new(bi)
-BIO *bi;
+static int nullf_new(BIO *bi)
{
bi->init=1;
bi->ptr=NULL;
{
bi->init=1;
bi->ptr=NULL;
@@
-110,8
+98,7
@@
BIO *bi;
return(1);
}
return(1);
}
-static int nullf_free(a)
-BIO *a;
+static int nullf_free(BIO *a)
{
if (a == NULL) return(0);
/* a->ptr=NULL;
{
if (a == NULL) return(0);
/* a->ptr=NULL;
@@
-120,10
+107,7
@@
BIO *a;
return(1);
}
return(1);
}
-static int nullf_read(b,out,outl)
-BIO *b;
-char *out;
-int outl;
+static int nullf_read(BIO *b, char *out, int outl)
{
int ret=0;
{
int ret=0;
@@
-135,10
+119,7
@@
int outl;
return(ret);
}
return(ret);
}
-static int nullf_write(b,in,inl)
-BIO *b;
-char *in;
-int inl;
+static int nullf_write(BIO *b, char *in, int inl)
{
int ret=0;
{
int ret=0;
@@
-150,11
+131,7
@@
int inl;
return(ret);
}
return(ret);
}
-static long nullf_ctrl(b,cmd,num,ptr)
-BIO *b;
-int cmd;
-long num;
-char *ptr;
+static long nullf_ctrl(BIO *b, int cmd, long num, char *ptr)
{
long ret;
{
long ret;
@@
-175,19
+152,14
@@
char *ptr;
return(ret);
}
return(ret);
}
-static int nullf_gets(bp,buf,size)
-BIO *bp;
-char *buf;
-int size;
+static int nullf_gets(BIO *bp, char *buf, int size)
{
if (bp->next_bio == NULL) return(0);
return(BIO_gets(bp->next_bio,buf,size));
}
{
if (bp->next_bio == NULL) return(0);
return(BIO_gets(bp->next_bio,buf,size));
}
-static int nullf_puts(bp,str)
-BIO *bp;
-char *str;
+static int nullf_puts(BIO *bp, char *str)
{
if (bp->next_bio == NULL) return(0);
return(BIO_puts(bp->next_bio,str));
{
if (bp->next_bio == NULL) return(0);
return(BIO_puts(bp->next_bio,str));