From f084cc4939d04b69ae403b8893d0d673a53cc8ad Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Fri, 21 Apr 2000 03:01:54 +0000
Subject: [PATCH] Fix still more static-declaration-vs-nonstatic-definition
 glitches. gcc doesn't think these are a problem, but somewhere out there is a
 compiler that will spit up.

---
 src/bin/psql/tab-complete.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index b7912709e3..6388dfce51 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3,7 +3,7 @@
  *
  * Copyright 2000 by PostgreSQL Global Development Group
  *
- * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.17 2000/04/12 17:16:23 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.18 2000/04/21 03:01:54 tgl Exp $
  */
 
 /*-----------
@@ -166,7 +166,7 @@ do {completion_charp = Query_for_list_of_attributes; completion_info_charp = tab
    is some partially obscure list format that can be generated by the readline
    libraries completion_matches() function, so we don't have to worry about it.
 */
-char	  **
+static char **
 psql_completion(char *text, int start, int end)
 {
 	/* This is the variable we'll return. */
@@ -694,7 +694,7 @@ psql_completion(char *text, int start, int end)
 /* This one gives you one from a list of things you can put after CREATE or DROP
    as defined above.
 */
-char *
+static char *
 create_command_generator(char *text, int state)
 {
 	static int	list_index,
@@ -727,7 +727,7 @@ create_command_generator(char *text, int state)
    Ordinarily this would be used to get a list of matching tables or functions,
    etc.
 */
-char *
+static char *
 complete_from_query(char *text, int state)
 {
 	static int	list_index,
@@ -775,7 +775,7 @@ complete_from_query(char *text, int state)
    of strings (if matching). This can be used if there are only a fixed number
    SQL words that can appear at certain spot.
 */
-char *
+static char *
 complete_from_list(char *text, int state)
 {
 	static int	string_length,
@@ -809,7 +809,7 @@ complete_from_list(char *text, int state)
    will be overwritten.
    The string to be passed must be in completion_charp.
 */
-char *
+static char *
 complete_from_const(char *text, int state)
 {
 	(void) text;				/* We don't care about what was entered
@@ -834,7 +834,7 @@ complete_from_const(char *text, int state)
    Note that the query passed in here must not have a semicolon at the end
    because we need to append LIMIT xxx.
 */
-PGresult   *
+static PGresult *
 exec_query(char *query)
 {
 	PGresult   *result;
@@ -874,7 +874,7 @@ exec_query(char *query)
    TODO: Take account of quotes. (Right now, if you table names contain spaces
    you're screwed.)
 */
-char *
+static char *
 previous_word(int point, int skip)
 {
 	int			i,