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. -- Rod Taylor <[EMAIL PROTECTED]>
PGP Key: http://www.rbt.ca/rbtpub.asc
Index: src/bin/psql/input.c =================================================================== RCS file: /home/rbt/work/postgresql/cvs/pgsql-server/src/bin/psql/input.c,v retrieving revision 1.23 diff -c -r1.23 input.c *** src/bin/psql/input.c 20 Mar 2003 06:43:35 -0000 1.23 --- src/bin/psql/input.c 25 Jun 2003 03:10:44 -0000 *************** *** 78,84 **** * The result is malloced. */ char * ! gets_interactive(const char *prompt) { #ifdef USE_READLINE char *s; --- 78,84 ---- * The result is malloced. */ char * ! gets_interactive(char *prompt) { #ifdef USE_READLINE char *s; Index: src/bin/psql/input.h =================================================================== RCS file: /home/rbt/work/postgresql/cvs/pgsql-server/src/bin/psql/input.h,v retrieving revision 1.19 diff -c -r1.19 input.h *** src/bin/psql/input.h 20 Mar 2003 06:00:12 -0000 1.19 --- src/bin/psql/input.h 25 Jun 2003 03:13:09 -0000 *************** *** 33,39 **** #endif ! char *gets_interactive(const char *prompt); char *gets_fromFile(FILE *source); void initializeInput(int flags); --- 33,39 ---- #endif ! char *gets_interactive(char *prompt); char *gets_fromFile(FILE *source); void initializeInput(int flags);
signature.asc
Description: This is a digitally signed message part