summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-15 18:28:32 +0000
committerjoerg <joerg>2006-01-15 18:28:32 +0000
commita6ec6f3cdb4489bbb31060beefa08fc768e4f3a5 (patch)
treee9b06ac4ae36b0af271c88faf3c591b3244f49ba
parent3b3c14381c877b00c300afc1d2975453311ee8c0 (diff)
downloadpkgsrc-a6ec6f3cdb4489bbb31060beefa08fc768e4f3a5.tar.gz
Fix some ancient C. This time with patch.
-rw-r--r--devel/fortran-utils/patches/patch-ac44
1 files changed, 44 insertions, 0 deletions
diff --git a/devel/fortran-utils/patches/patch-ac b/devel/fortran-utils/patches/patch-ac
new file mode 100644
index 00000000000..57502531b4d
--- /dev/null
+++ b/devel/fortran-utils/patches/patch-ac
@@ -0,0 +1,44 @@
+$NetBSD: patch-ac,v 1.1 2006/01/15 18:28:32 joerg Exp $
+
+--- fpr/fpr.c.orig 1994-05-27 12:31:21.000000000 +0000
++++ fpr/fpr.c
+@@ -44,6 +44,7 @@ static char copyright[] =
+ static char sccsid[] = "@(#)fpr.c 8.1 (Berkeley) 6/6/93";
+ #endif /* not lint */
+
++#include <stdlib.h>
+ #include <stdio.h>
+
+ #define BLANK ' '
+@@ -80,10 +81,7 @@ COLUMN *line;
+ int maxpos;
+ int maxcol;
+
+-extern char *malloc();
+-extern char *calloc();
+-extern char *realloc();
+-
++void my_gettext(void);
+
+
+ main()
+@@ -124,7 +122,7 @@ main()
+
+ while ( ! ateof)
+ {
+- gettext();
++ my_gettext();
+ ch = getchar();
+ if (ch == EOF)
+ {
+@@ -209,8 +207,8 @@ init()
+ }
+
+
+-
+-gettext()
++void
++my_gettext(void)
+ {
+ register int i;
+ register char ateol;