+2005-03-22 Werner Koch <wk@g10code.com>
+
+ * assuan-defs.h (struct assuan_io): Renamed elements READ and
+ WRITE to READFNC and WRITEFNC to avoid problems with read defined
+ as macro. Changed callers. Noted by Ville Skyttä.
+
2004-12-16 Marcus Brinkmann <marcus@g10code.de>
* assuan-pipe-connect.c (do_finish): Do not wait for child to finish.
{
while (length)
{
- ssize_t nwritten = ctx->io->write (ctx, buffer, length);
+ ssize_t nwritten = ctx->io->writefnc (ctx, buffer, length);
if (nwritten < 0)
{
*r_nread = 0;
while (nleft > 0)
{
- ssize_t n = ctx->io->read (ctx, buf, nleft);
+ ssize_t n = ctx->io->readfnc (ctx, buf, nleft);
if (n < 0)
{
struct assuan_io
{
/* Routine to read from input_fd. */
- ssize_t (*read) (ASSUAN_CONTEXT, void *, size_t);
+ ssize_t (*readfnc) (ASSUAN_CONTEXT, void *, size_t);
/* Routine to write to output_fd. */
- ssize_t (*write) (ASSUAN_CONTEXT, const void *, size_t);
+ ssize_t (*writefnc) (ASSUAN_CONTEXT, const void *, size_t);
/* Send a file descriptor. */
AssuanError (*sendfd) (ASSUAN_CONTEXT, int);
/* Receive a file descriptor. */