pgwin32_send - Mailing list pgsql-hackers

From Andrew Dunstan
Subject pgwin32_send
Date
Msg-id 4DB36DEA.5090508@dunslane.net
Whole thread Raw
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Extension Packaging
Next
From: Bruce Momjian
Date:
Subject: pg_upgrade copy_file not needed on Win32