openbsd-ports/print/ghostview/patches/patch-ps_c
espie 220c8232ff brute-force fixing of ghostview for sparc64: add prototypes everywhere,
and don't pass abuse-cast int to XtPointer.

pval@ says it works.
2002-04-26 01:44:08 +00:00

27 lines
664 B
Plaintext

$OpenBSD: patch-ps_c,v 1.1 2002/04/26 01:44:09 espie Exp $
--- ps.c.orig Sun Jul 11 18:10:18 1993
+++ ps.c Fri Apr 26 02:38:33 2002
@@ -24,6 +24,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
@@ -67,10 +68,10 @@ struct documentmedia papersizes[] = {
};
-static char *readline();
-static char *gettextline();
-static char *gettext();
-static int blank();
+static char *readline(char *, int, FILE *, long *, unsigned int *);
+static char *gettextline(char *);
+static char *gettext(char *, char **);
+static int blank(char *);
/*
* psscan -- scan the PostScript file for document structuring comments.