aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/postscript/download/download.c
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-05-16 07:54:22 +0000
committerwkj <devnull@localhost>2004-05-16 07:54:22 +0000
commitb855148c9b6d28fedfd083d037bcf246f1913d92 (patch)
tree0075eb6ea37427fa48b78cb937fabc04175cead1 /src/cmd/postscript/download/download.c
parent61f5c35c9465f0702739b41249a664d409f0482c (diff)
downloadplan9port-b855148c9b6d28fedfd083d037bcf246f1913d92.tar.gz
plan9port-b855148c9b6d28fedfd083d037bcf246f1913d92.tar.bz2
plan9port-b855148c9b6d28fedfd083d037bcf246f1913d92.zip
Checkpoint.
Diffstat (limited to 'src/cmd/postscript/download/download.c')
-rw-r--r--src/cmd/postscript/download/download.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/postscript/download/download.c b/src/cmd/postscript/download/download.c
index ab6bdd52..5a6bdf3f 100644
--- a/src/cmd/postscript/download/download.c
+++ b/src/cmd/postscript/download/download.c
@@ -99,10 +99,10 @@ main(agc, agv)
*
*/
- fp_in = stdin;
-
argc = agc; /* other routines may want them */
argv = agv;
+
+ fp_in = stdin;
prog_name = argv[0]; /* just for error messages */
@@ -244,7 +244,7 @@ readmap()
sprintf(path, "%s/%s%s", hostfontdir, mapname, suffix);
} else path = mapname;
- if ( (fd = open(unsharp(path), 0)) != -1 ) {
+ if ( (fd = open(path, 0)) != -1 ) {
if ( fstat(fd, &sbuf) == -1 )
error(FATAL, "can't fstat %s", path);
if ( (stringspace = (char *)malloc(sbuf.st_size + 2)) == NULL )
@@ -303,7 +303,7 @@ readresident()
path = buf;
} else path = residentfonts;
- if ( (fp = fopen(unsharp(path), "r")) != NULL ) {
+ if ( (fp = fopen(path, "r")) != NULL ) {
while ( fscanf(fp, "%s", buf) != EOF )
if ( buf[0] == '%' )
while ( (ch = getc(fp)) != EOF && ch != '\n' ) ;
@@ -336,7 +336,7 @@ arguments()
fp_temp = NULL;
if ( strcmp(*argv, "-") == 0 )
fp_in = stdin;
- else if ( (fp_in = fopen(unsharp(*argv), "r")) == NULL )
+ else if ( (fp_in = fopen(*argv, "r")) == NULL )
error(FATAL, "can't open %s", *argv);
download();
if ( fp_in != stdin )
@@ -449,9 +449,9 @@ copyfonts(list)
if ( (path = (char *)malloc(strlen(hostfontdir)+strlen(map[n].file)+2)) == NULL )
error(FATAL, "no memory");
sprintf(path, "%s/%s", hostfontdir, map[n].file);
- cat(unsharp(path));
+ cat(path);
free(path);
- } else cat(unsharp(map[n].file));
+ } else cat(map[n].file);
map[n].downloaded = TRUE;
} /* End if */
} /* End while */