pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/fortran-utils/patches Fix some ancient C. This t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0ce3bb2621e
branches:  trunk
changeset: 506409:d0ce3bb2621e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Jan 15 18:28:32 2006 +0000

description:
Fix some ancient C. This time with patch.

diffstat:

 devel/fortran-utils/patches/patch-ac |  44 ++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diffs (48 lines):

diff -r f1d75c427e02 -r d0ce3bb2621e devel/fortran-utils/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/fortran-utils/patches/patch-ac      Sun Jan 15 18:28:32 2006 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index