summaryrefslogtreecommitdiff
path: root/print/psutils/files/patch-epsffit.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-04-24 04:13:09 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-04-24 04:13:09 +0000
commit5f8eb67e3760459c0834c08f36d9e502d3388e3a (patch)
treeb0094c17ab958c91c23c0e89d3bb437c5adf6982 /print/psutils/files/patch-epsffit.c
parent- Add patch to prevent deletion of /dev/null (diff)
Merge print/psutils-a4 and print/psutils-letter into a single port
print/psutils. The default paper size in the programs can be set via libpaper ($PAPERSIZE or etc/papersize configuration file).
Notes
Notes: svn path=/head/; revision=316401
Diffstat (limited to '')
-rw-r--r--print/psutils/files/patch-epsffit.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/print/psutils/files/patch-epsffit.c b/print/psutils/files/patch-epsffit.c
new file mode 100644
index 000000000000..3cfb954d1e97
--- /dev/null
+++ b/print/psutils/files/patch-epsffit.c
@@ -0,0 +1,22 @@
+--- epsffit.c.orig 1997-03-12 07:52:52.000000000 +0900
++++ epsffit.c 2012-03-03 02:46:20.000000000 +0900
+@@ -39,10 +39,10 @@
+ exit(1);
+ }
+
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ int bbfound = 0; /* %%BoundingBox: found */
+- int urx, ury, llx, lly;
++ int urx = 0, ury = 0, llx = 0, lly = 0;
+ int furx, fury, fllx, flly;
+ int showpage = 0, centre = 0, rotate = 0, aspect = 0, maximise = 0;
+ char buf[BUFSIZ];
+@@ -185,5 +185,5 @@
+ } else
+ message(FATAL, "no %%%%BoundingBox:\n");
+
+- exit(0);
++ return (0);
+ }