diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-15 18:28:32 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-15 18:28:32 +0000 |
commit | 1562934d614c1b2ea4c4cef9f7e9fd6589dd7db8 (patch) | |
tree | e9b06ac4ae36b0af271c88faf3c591b3244f49ba /devel/fortran-utils | |
parent | e0b03b6f520680cbf9791e7d1776bd140f0d7738 (diff) | |
download | pkgsrc-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-ac | 44 |
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; |