From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Marc ROGLIANO <marc(at)rogliano(dot)net> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #2606: (libpq) incorrect function declaration |
Date: | 2006-09-07 15:37:25 |
Message-ID: | 200609071537.k87FbPN21965@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Marc ROGLIANO wrote:
>
> The following bug has been logged online:
>
> Bug reference: 2606
> Logged by: Marc ROGLIANO
> Email address: marc(at)rogliano(dot)net
> PostgreSQL version: 8.1.4
> Operating system: Windows XP
> Description: (libpq) incorrect function declaration in libpq-fe.h
> Details:
>
> Hello,
>
> In libpq-fe.h, the function lo_write is declared :
>
> extern int lo_write(PGconn *conn, int fd, char *buf, size_t len);
> => 'const' missing before char *buf : buf should not be writable here
Right, patch attached and applied. Interestingly, it was documented as
taking a 'const' there, but not implemented as const in the code.
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Attachment | Content-Type | Size |
---|---|---|
/bjm/diff | text/x-diff | 4.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Shelby Cain | 2006-09-07 16:04:56 | Re: BUG #2609: server crash at 182 connections still alive. |
Previous Message | Merlin Moncure | 2006-09-07 13:04:24 | Re: [HACKERS] Template0 age is increasing speedily. |