summaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/socket.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-05-16 20:48:52 +0000
committerBruce Momjian <bruce@momjian.us>2000-05-16 20:48:52 +0000
commita47e20b049a293d47a0f22e96447a38b717327a5 (patch)
treede389d919b4dcabb455d8c8bd6fa1c49be39ba0b /src/interfaces/odbc/socket.c
parent5128d145a8f04bdee6ebf73314437b36871a847b (diff)
Several compilation and run-time problems occur when building on SGI
IRIX systems using the native compilers. A summary is: - Various files use "//" as a comment delimiter in c files. - Problems caused by assuming "char" is signed. cash.in: building -signed the rules regression test fails as described in FAQ_QNX4. If CHAR_MAX is "255U" then ((signed char)CHAR_MAX) is -1. postmaster.c: random number regression test failed without this change. - Some generic build issues and warning message cleanup. David Kaelbling
Diffstat (limited to 'src/interfaces/odbc/socket.c')
-rw-r--r--src/interfaces/odbc/socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/odbc/socket.c b/src/interfaces/odbc/socket.c
index 32114ffc6d9..30fb56f9042 100644
--- a/src/interfaces/odbc/socket.c
+++ b/src/interfaces/odbc/socket.c
@@ -277,8 +277,8 @@ SOCK_get_next_byte(SocketClass *self)
{
if (self->buffer_read_in >= self->buffer_filled_in) {
- // there are no more bytes left in the buffer ->
- // reload the buffer
+ /* there are no more bytes left in the buffer -> */
+ /* reload the buffer */
self->buffer_read_in = 0;
self->buffer_filled_in = recv(self->socket, (char *)self->buffer_in, globals.socket_buffersize, 0);
@@ -308,7 +308,7 @@ int bytes_sent;
self->buffer_out[self->buffer_filled_out++] = next_byte;
if (self->buffer_filled_out == globals.socket_buffersize) {
- // buffer is full, so write it out
+ /* buffer is full, so write it out */
bytes_sent = send(self->socket, (char *)self->buffer_out, globals.socket_buffersize, 0);
if (bytes_sent != globals.socket_buffersize) {
self->errornumber = SOCKET_WRITE_ERROR;