summaryrefslogtreecommitdiff
path: root/editors/mg2a/patches/patch-aq
blob: 8706a87f4988e9a0d798c403f7934f03964b5336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
$NetBSD: patch-aq,v 1.1 2006/06/30 15:59:58 tron Exp $

--- 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++) {