aboutsummaryrefslogtreecommitdiff
path: root/src/backend/libpq/pqcomm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/libpq/pqcomm.c')
-rw-r--r--src/backend/libpq/pqcomm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index 23a9865acb5..d0904bfc7df 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -30,7 +30,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.179 2005/09/12 02:26:31 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/pqcomm.c,v 1.180 2005/09/24 17:53:14 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -106,11 +106,11 @@ static char sock_path[MAXPGPATH];
#define PQ_BUFFER_SIZE 8192
-static unsigned char PqSendBuffer[PQ_BUFFER_SIZE];
+static char PqSendBuffer[PQ_BUFFER_SIZE];
static int PqSendPointer; /* Next index to store a byte in
* PqSendBuffer */
-static unsigned char PqRecvBuffer[PQ_BUFFER_SIZE];
+static char PqRecvBuffer[PQ_BUFFER_SIZE];
static int PqRecvPointer; /* Next index to read a byte from
* PqRecvBuffer */
static int PqRecvLength; /* End of data available in PqRecvBuffer */
@@ -482,7 +482,7 @@ Setup_AF_UNIX(void)
elog(WARNING, "configuration item unix_socket_group is not supported on this platform");
#else
char *endptr;
- unsigned long int val;
+ unsigned long val;
gid_t gid;
val = strtoul(Unix_socket_group, &endptr, 10);
@@ -741,7 +741,7 @@ pq_getbyte(void)
if (pq_recvbuf()) /* If nothing in buffer, then recv some */
return EOF; /* Failed to recv data */
}
- return PqRecvBuffer[PqRecvPointer++];
+ return (unsigned char) PqRecvBuffer[PqRecvPointer++];
}
/* --------------------------------
@@ -758,7 +758,7 @@ pq_peekbyte(void)
if (pq_recvbuf()) /* If nothing in buffer, then recv some */
return EOF; /* Failed to recv data */
}
- return PqRecvBuffer[PqRecvPointer];
+ return (unsigned char) PqRecvBuffer[PqRecvPointer];
}
/* --------------------------------
@@ -1029,8 +1029,8 @@ internal_flush(void)
{
static int last_reported_send_errno = 0;
- unsigned char *bufptr = PqSendBuffer;
- unsigned char *bufend = PqSendBuffer + PqSendPointer;
+ char *bufptr = PqSendBuffer;
+ char *bufend = PqSendBuffer + PqSendPointer;
while (bufptr < bufend)
{