summaryrefslogtreecommitdiff
path: root/devel/fortran-utils
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-15 18:28:32 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-15 18:28:32 +0000
commit1562934d614c1b2ea4c4cef9f7e9fd6589dd7db8 (patch)
treee9b06ac4ae36b0af271c88faf3c591b3244f49ba /devel/fortran-utils
parente0b03b6f520680cbf9791e7d1776bd140f0d7738 (diff)
downloadpkgsrc-1562934d614c1b2ea4c4cef9f7e9fd6589dd7db8.tar.gz
Fix some ancient C. This time with patch.
Diffstat (limited to 'devel/fortran-utils')
-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;