$NetBSD$

--- help.c.orig	1988-07-03 18:50:10.000000000 +0100
+++ help.c	2006-06-30 16:57:54.000000000 +0100
@@ -10,6 +10,8 @@
 #endif
 extern int rescan();
 
+#include <string.h>
+
 /*
  * Read a key from the keyboard, and look it
  * up in the keymap.  Display the name of the function
@@ -87,12 +89,13 @@
 static BUFFER	*bp;
 static char buf[80];	/* used by showall and findbind */
 
+static int showall();
+
 /*ARGSUSED*/
 wallchart(f, n)
 {
 	int m;
 	static char locbind[80] = "Local keybindings for mode ";
-	static int showall();
 
 	bp = bfind("*help*", TRUE);
 	if (bclear(bp) != TRUE) return FALSE;	/* Clear it out.	*/
@@ -181,6 +184,8 @@
 static char buf2[128];
 static char *buf2p;
 
+static VOID findbind();
+
 /*ARGSUSED*/
 apropos_command(f, n)
 int f, n;
@@ -189,7 +194,6 @@
     char string[32];
     FUNCTNAMES *fnp;
     BUFFER *bp;
-    static VOID findbind();
 
     if(eread("apropos: ", string, sizeof(string), EFNEW) == ABORT) return ABORT;
 	/* FALSE means we got a 0 character string, which is fine */
@@ -212,6 +216,8 @@
     return popbuftop(bp);
 }
 
+static VOID	bindfound();
+
 static VOID findbind(funct, ind, map)
 PF funct;
 char *ind;
@@ -221,7 +227,6 @@
     register int i;
     char	*cp;
     int		last;
-    static VOID	bindfound();
 
     last = -1;
     for(ele = &map->map_element[0]; ele < &map->map_element[map->map_num]; ele++) {
