From 8f3f239839a7cf7aaad5b853fc0dd4d261fbac66 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 1 Jan 2006 20:02:09 +0000 Subject: [PATCH] (ioq_makebuf, ioq_makeiov) [_WIN32]: Remove the external for ioq_makeiov() for WIN32 case so it matches source for the ioq_makeiov(). Reorganize ioq_makebuf() to make it obvious that ioq_makebuf() is used for WIN32 and everybody uses ioq_makeiov(). --- include/ioqueue.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ioqueue.h b/include/ioqueue.h index d836e9ab..58e9a999 100644 --- a/include/ioqueue.h +++ b/include/ioqueue.h @@ -51,7 +51,11 @@ struct ioqueue { extern struct ioqueue *ioq_create(int size); extern void ioq_destroy(struct ioqueue *ioq); extern void ioq_drain(struct ioqueue *ioq); +#if defined (_WIN32) +extern int ioq_makebuf(struct ioqueue *ioq, char *pBuf, int nBufLen); +#else extern int ioq_makeiov(struct ioqueue *ioq, struct iovec *iov, int cc); +#endif extern int ioq_peek(struct ioqueue *ioq, s_char *buf, int cc); extern int ioq_dequeue(struct ioqueue *ioq, int cc); extern void ioq_append(struct ioqueue *ioq, s_char *buf, int cc); @@ -59,8 +63,4 @@ extern int ioq_qsize(struct ioqueue *ioq); extern int ioq_gets(struct ioqueue *ioq, s_char *buf, int cc); extern int ioq_puts(struct ioqueue *ioq, s_char *buf); -#if defined (_WIN32) -extern int ioq_makebuf(struct ioqueue *ioq, char *pBuf, int nBufLen); -#endif - #endif