mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
80053aa18e
PR: 16965 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
55 lines
1.4 KiB
Plaintext
55 lines
1.4 KiB
Plaintext
--- epstool.c.orig Tue Feb 15 08:52:06 2000
|
|
+++ epstool.c Fri Feb 25 04:09:56 2000
|
|
@@ -25,7 +25,7 @@
|
|
char upname[MAXSTR];
|
|
char gsname[MAXSTR] = GSCOMMAND;
|
|
char bmpname[MAXSTR];
|
|
-char devname[MAXSTR];
|
|
+char gsdevname[MAXSTR];
|
|
char szScratch[] = "ep";
|
|
char szAppName[] = "epstool";
|
|
int resolution = 72;
|
|
@@ -90,9 +90,9 @@
|
|
main(int argc, char *argv[])
|
|
{
|
|
#ifdef UNIX
|
|
- strcpy(devname, "pbmraw");
|
|
+ strcpy(gsdevname, "pbmraw");
|
|
#else
|
|
- strcpy(devname, "bmpmono");
|
|
+ strcpy(gsdevname, "bmpmono");
|
|
#endif
|
|
if (scan_args(argc, argv))
|
|
return 1;
|
|
@@ -260,10 +260,10 @@
|
|
fclose(tempfile);
|
|
#ifdef UNIX
|
|
sprintf(gscommand, "%s -dNOPAUSE -dQUIET -sDEVICE=%s -sOutputFile=\042%s\042 -r%d -g%dx%d %s",
|
|
- gsname, devname, bmpname, resolution, width, height, tempname);
|
|
+ gsname, gsdevname, bmpname, resolution, width, height, tempname);
|
|
#else
|
|
sprintf(gscommand, "-dNOPAUSE\n-dQUIET\n-sDEVICE=%s\n-sOutputFile=\042%s\042\n-r%d\n-g%dx%d\n\042%s\042",
|
|
- devname, bmpname, resolution, width, height, tempname);
|
|
+ gsdevname, bmpname, resolution, width, height, tempname);
|
|
if (!quiet) {
|
|
fputs(gscommand, stderr);
|
|
fputs("\n", stderr);
|
|
@@ -429,7 +429,7 @@
|
|
break;
|
|
case 'z':
|
|
if (argp[2])
|
|
- strcpy(devname, argp+2);
|
|
+ strcpy(gsdevname, argp+2);
|
|
break;
|
|
case 'c':
|
|
if (got_op) {
|
|
@@ -566,7 +566,7 @@
|
|
|
|
strcat(fname, prefix);
|
|
strcat(fname, "XXXXXX");
|
|
- mktemp(fname);
|
|
+ mkstemp(fname);
|
|
return fopen(fname, mode);
|
|
}
|
|
|