Re: windows consolidated cleanup

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: windows consolidated cleanup
Дата
Msg-id 1303657079.5006.2.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на windows consolidated cleanup  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: windows consolidated cleanup  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
The hunk below looks a bit evil.

At least a comment would be good to explain why this is necessary.

On sön, 2011-04-24 at 01:29 -0400, Andrew Dunstan wrote:
> *** a/src/backend/port/win32/socket.c
> --- b/src/backend/port/win32/socket.c
> ***************
> *** 370,376 **** pgwin32_recv(SOCKET s, char *buf, int len, int f)
>   }
>   
>   int
> ! pgwin32_send(SOCKET s, char *buf, int len, int flags)
>   {
>         WSABUF          wbuf;
>         int                     r;
> --- 370,376 ----
>   }
>   
>   int
> ! pgwin32_send(SOCKET s, const char *buf, int len, int flags)
>   {
>         WSABUF          wbuf;
>         int                     r;
> ***************
> *** 380,386 **** pgwin32_send(SOCKET s, char *buf, int len, int flags)
>                 return -1;
>   
>         wbuf.len = len;
> !       wbuf.buf = buf;
>   
>         /*
>          * Readiness of socket to send data to UDP socket may be not true: socket
> --- 380,386 ----
>                 return -1;
>   
>         wbuf.len = len;
> !       wbuf.buf = (char *) buf;
>   
>         /*
>          * Readiness of socket to send data to UDP socket may be not true: socket
> 
> 



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: windows consolidated cleanup
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: windows consolidated cleanup