Make the functions passed to funopen(3) look like the manual page
says they should. Arguably, funopen(3) and the internal stdio data structure should be changed, but that might be a pretty big issue.
This commit is contained in:
parent
f7f12c9b64
commit
95319c1ddc
|
@ -174,18 +174,19 @@ sfdcsasl(fin, fout, conn)
|
|||
# include "sfsasl.h"
|
||||
# include <openssl/err.h>
|
||||
|
||||
static ssize_t
|
||||
# if SFIO
|
||||
static ssize_t
|
||||
tls_read(f, buf, size, disc)
|
||||
Sfio_t *f;
|
||||
Void_t *buf;
|
||||
size_t size;
|
||||
Sfdisc_t *disc;
|
||||
# else /* SFIO */
|
||||
int
|
||||
tls_read(disc, buf, size)
|
||||
void *disc;
|
||||
void *buf;
|
||||
size_t size;
|
||||
char *buf;
|
||||
int size;
|
||||
# endif /* SFIO */
|
||||
{
|
||||
int r;
|
||||
|
@ -232,18 +233,19 @@ tls_read(disc, buf, size)
|
|||
return r;
|
||||
}
|
||||
|
||||
static ssize_t
|
||||
# if SFIO
|
||||
static ssize_t
|
||||
tls_write(f, buf, size, disc)
|
||||
Sfio_t *f;
|
||||
const Void_t *buf;
|
||||
size_t size;
|
||||
Sfdisc_t *disc;
|
||||
# else /* SFIO */
|
||||
int
|
||||
tls_write(disc, buf, size)
|
||||
void *disc;
|
||||
const void *buf;
|
||||
size_t size;
|
||||
const char *buf;
|
||||
int size;
|
||||
# endif /* SFIO */
|
||||
{
|
||||
int r;
|
||||
|
|
Loading…
Reference in New Issue