pgwin32_send

Started by Andrew Dunstanover 14 years ago1 messages
#1Andrew Dunstan
andrew@dunslane.net

The declaration of pgwin32_send in src/backend/port/win32/socket.c has:

int pgwin32_send(SOCKET s, char *buf, int len, int flags)

but the on my Linux machine, the prototype for send() is:

ssize_t send(int sockfd, const void *buf, size_t len, int flags);

Is there any reason not to make the second argument a "const char *" and
thus avoid a whine from gcc on Windows?

cheers

andrew