Re: src/bin/psql/input.c - Mailing list pgsql-patches

From Tom Lane
Subject Re: src/bin/psql/input.c
Date
Msg-id 3409.1056554785@sss.pgh.pa.us
Whole thread Raw
In response to src/bin/psql/input.c  (Rod Taylor <rbt@rbt.ca>)
Responses Re: src/bin/psql/input.c  (Rod Taylor <rbt@rbt.ca>)
List pgsql-patches
Rod Taylor <rbt@rbt.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

pgsql-patches by date:

Previous
From: greg@turnstep.com
Date:
Subject: Re: Consistent timestamp input
Next
From: Tom Lane
Date:
Subject: Re: pg_dump with conbin