freebsd-ports/print/psutils/files/patch-epsffit.c
Hiroki Sato 5f8eb67e37 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).
2013-04-24 04:13:09 +00:00

22 lines
585 B
C

--- 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);
}