Tweak sysutils/44bsd-more version 20000521
[dports.git] / sysutils / 44bsd-more / files / patch-ncommand.c
1 --- ncommand.c.orig     2011-09-08 01:02:56.000000000 +0800
2 +++ ncommand.c  2011-09-08 01:19:11.000000000 +0800
3 @@ -231,6 +231,7 @@ donextcommand:
4   */
5  
6  static char *readvar();
7 +static const char *getvar(char *, int);
8  
9  #define NCTXTS 128
10  void *getstr_ctxts[NCTXTS];  /* could easily be made dynamic... */
11 @@ -580,6 +581,7 @@ gettog(const char **line, int nopts, ...
12   * also be set to a corresponding value.  The optnumb argument had better
13   * be within the correct range (between 0 and 2 in the above example)!!
14   */
15 +void
16  settog(const char *varname, int optval, int nargs, ...)
17  {
18         va_list opts;
19 @@ -613,7 +615,6 @@ readvar(line)
20  {
21         int vlength;
22         char *vstart;
23 -       static char *getvar();
24  
25         if (**line != '{') {
26                 SETERR (E_BADVAR);