summaryrefslogtreecommitdiff
path: root/print/psutils/files/patch-epsffit.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/psutils/files/patch-epsffit.c')
-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);
+ }