Обсуждение: pgwin32_send

Поиск
Список
Период
Сортировка

pgwin32_send

От
Andrew Dunstan
Дата:
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