Re: src/bin/psql/input.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rod Taylor <rbt(at)rbt(dot)ca>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: src/bin/psql/input.c
Date: 2003-06-25 15:26:25
Message-ID: 3409.1056554785@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Rod Taylor <rbt(at)rbt(dot)ca> writes:
> It seems that readline() on my system (FreeBSD 4.8) isn't declared to
> take the prompt as a const. Thus, remove const from gets_interactive()
> to remove the warning.

I think it would be a lot cleaner to just put a cast to char * into the
readline call (with a note about why).

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-06-25 15:27:48 Re: pg_dump with conbin
Previous Message greg 2003-06-25 14:56:37 Re: Consistent timestamp input