pgsql-server/src/bin/psql input.c

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src/bin/psql input.c
Date: 2003-07-25 19:27:06
Message-ID: 20030725192706.7ABC6D1C514@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian(at)svr1(dot)postgresql(dot)org 03/07/25 16:27:06

Modified files:
src/bin/psql : input.c

Log message:
> 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).

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(at)rbt(dot)ca>

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2003-07-25 19:37:22 pgsql-server/src/bin/pg_dump pg_dump.c
Previous Message Michael Meskes 2003-07-25 16:10:27 pgsql-server/src/interfaces/ecpg ChangeLog ecp ...