Skip site navigation (1) Skip section navigation (2)

Re: BUG #2606: (libpq) incorrect function declaration

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 (view raw or flat)
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: /bjm/diff
Description: text/x-diff (4.9 KB)

In response to

pgsql-bugs by date

Next:From: Shelby CainDate: 2006-09-07 16:04:56
Subject: Re: BUG #2609: server crash at 182 connections still alive.
Previous:From: Merlin MoncureDate: 2006-09-07 13:04:24
Subject: Re: [HACKERS] Template0 age is increasing speedily.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group