summaryrefslogtreecommitdiff
path: root/sysutils/44bsd-more/files/patch-ncommand.c
blob: 25c8e9b40006ca4fa80426378d9272af733d6d3e (plain) (blame)
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
--- ncommand.c.orig	2011-09-08 01:02:56.000000000 +0800
+++ ncommand.c	2011-09-08 01:19:11.000000000 +0800
@@ -231,6 +231,7 @@ donextcommand:
  */
 
 static char *readvar();
+static const char *getvar(char *, int);
 
 #define NCTXTS 128
 void *getstr_ctxts[NCTXTS];  /* could easily be made dynamic... */
@@ -580,6 +581,7 @@ gettog(const char **line, int nopts, ...
  * also be set to a corresponding value.  The optnumb argument had better
  * be within the correct range (between 0 and 2 in the above example)!!
  */
+void
 settog(const char *varname, int optval, int nargs, ...)
 {
 	va_list opts;
@@ -613,7 +615,6 @@ readvar(line)
 {
 	int vlength;
 	char *vstart;
-	static char *getvar();
 
 	if (**line != '{') {
 		SETERR (E_BADVAR);