pgwin32_send

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: pgwin32_send
Date: 2011-04-24 00:25:14
Message-ID: 4DB36DEA.5090508@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2011-04-24 00:30:23 pg_upgrade copy_file not needed on Win32
Previous Message Daniele Varrazzo 2011-04-24 00:10:14 Re: Extension Packaging