提交 0fd05a2f 编写于 作者: B Bodo Möller

fix warnings (CHARSET_EBCDIC)

Submitted by: Lorinczy Zsigmond <lzsiga@mail.ahiv.hu>
上级 1fd0338b
...@@ -335,10 +335,10 @@ static char **local_argv; ...@@ -335,10 +335,10 @@ static char **local_argv;
static int ebcdic_new(BIO *bi); static int ebcdic_new(BIO *bi);
static int ebcdic_free(BIO *a); static int ebcdic_free(BIO *a);
static int ebcdic_read(BIO *b, char *out, int outl); static int ebcdic_read(BIO *b, char *out, int outl);
static int ebcdic_write(BIO *b, char *in, int inl); static int ebcdic_write(BIO *b, const char *in, int inl);
static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr); static long ebcdic_ctrl(BIO *b, int cmd, long num, void *ptr);
static int ebcdic_gets(BIO *bp, char *buf, int size); static int ebcdic_gets(BIO *bp, char *buf, int size);
static int ebcdic_puts(BIO *bp, char *str); static int ebcdic_puts(BIO *bp, const char *str);
#define BIO_TYPE_EBCDIC_FILTER (18|0x0200) #define BIO_TYPE_EBCDIC_FILTER (18|0x0200)
static BIO_METHOD methods_ebcdic= static BIO_METHOD methods_ebcdic=
...@@ -403,7 +403,7 @@ static int ebcdic_read(BIO *b, char *out, int outl) ...@@ -403,7 +403,7 @@ static int ebcdic_read(BIO *b, char *out, int outl)
return(ret); return(ret);
} }
static int ebcdic_write(BIO *b, char *in, int inl) static int ebcdic_write(BIO *b, const char *in, int inl)
{ {
EBCDIC_OUTBUFF *wbuf; EBCDIC_OUTBUFF *wbuf;
int ret=0; int ret=0;
...@@ -436,7 +436,7 @@ static int ebcdic_write(BIO *b, char *in, int inl) ...@@ -436,7 +436,7 @@ static int ebcdic_write(BIO *b, char *in, int inl)
return(ret); return(ret);
} }
static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr) static long ebcdic_ctrl(BIO *b, int cmd, long num, void *ptr)
{ {
long ret; long ret;
...@@ -455,7 +455,7 @@ static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr) ...@@ -455,7 +455,7 @@ static long ebcdic_ctrl(BIO *b, int cmd, long num, char *ptr)
static int ebcdic_gets(BIO *bp, char *buf, int size) static int ebcdic_gets(BIO *bp, char *buf, int size)
{ {
int i, ret; int i, ret=0;
if (bp->next_bio == NULL) return(0); if (bp->next_bio == NULL) return(0);
/* return(BIO_gets(bp->next_bio,buf,size));*/ /* return(BIO_gets(bp->next_bio,buf,size));*/
for (i=0; i<size-1; ++i) for (i=0; i<size-1; ++i)
...@@ -474,7 +474,7 @@ static int ebcdic_gets(BIO *bp, char *buf, int size) ...@@ -474,7 +474,7 @@ static int ebcdic_gets(BIO *bp, char *buf, int size)
return (ret < 0 && i == 0) ? ret : i; return (ret < 0 && i == 0) ? ret : i;
} }
static int ebcdic_puts(BIO *bp, char *str) static int ebcdic_puts(BIO *bp, const char *str)
{ {
if (bp->next_bio == NULL) return(0); if (bp->next_bio == NULL) return(0);
return ebcdic_write(bp, str, strlen(str)); return ebcdic_write(bp, str, strlen(str));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册