summaryrefslogtreecommitdiff
path: root/sysutils/44bsd-more/files/patch-ncommand.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2007-06-22 06:53:11 +0000
committerXin LI <delphij@FreeBSD.org>2007-06-22 06:53:11 +0000
commitd6a6f8552aaee8bda1b0a5217f6fc05f757d3f14 (patch)
tree1e9e9e89ae166ce2372bbe36a16b5155dd7e5bed /sysutils/44bsd-more/files/patch-ncommand.c
parent- Add missing dependency when ID3TAG knob is on (diff)
Unbreak for gcc 4.2.
Approved by: maintainer timeout PR: ports/112847
Notes
Notes: svn path=/head/; revision=194041
Diffstat (limited to 'sysutils/44bsd-more/files/patch-ncommand.c')
-rw-r--r--sysutils/44bsd-more/files/patch-ncommand.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/44bsd-more/files/patch-ncommand.c b/sysutils/44bsd-more/files/patch-ncommand.c
new file mode 100644
index 000000000000..39167e12cf95
--- /dev/null
+++ b/sysutils/44bsd-more/files/patch-ncommand.c
@@ -0,0 +1,18 @@
+--- ./ncommand.c.orig 2007-06-22 14:48:44.603814341 +0800
++++ ./ncommand.c 2007-06-22 14:48:44.631081101 +0800
+@@ -231,6 +231,7 @@
+ */
+
+ static char *readvar();
++static const char *getvar(char *, int);
+
+ #define NCTXTS 128
+ void *getstr_ctxts[NCTXTS]; /* could easily be made dynamic... */
+@@ -613,7 +614,6 @@
+ {
+ int vlength;
+ char *vstart;
+- static char *getvar();
+
+ if (**line != '{') {
+ SETERR (E_BADVAR);