> Rod Taylor <rbt@rbt.ca> writes:

Bruce Momjian <bruce@momjian.us>

Commit: 187e865174024c49f84e074184d8e3f05d44a923
Author: Bruce Momjian <bruce@momjian.us>
Date: 2003-07-25T19:27:06Z
Releases: 7.4.1
> 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).

Ok.. that works.

I must say it's a little strange being able to take a constant and say
its no longer constant anymore -- but I suppose it's no different than
defining then undefining pre-processor constants.

Rod Taylor <rbt@rbt.ca>

Files

PathChange+/−
src/bin/psql/input.c modified +3 −2