summaryrefslogtreecommitdiffstats
path: root/src/cmd/postscript/tr2post/readDESC.c
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-05-17 02:24:15 +0000
committerwkj <devnull@localhost>2004-05-17 02:24:15 +0000
commite8fb1d3efb114d1859f14fda2b6681d99df1f48a (patch)
treea3b437370521c9eff6cab00dd77fd2d95a3dc090 /src/cmd/postscript/tr2post/readDESC.c
parent8a3cbc157981485adc947c0477dc3e4907acc9a3 (diff)
downloadplan9port-e8fb1d3efb114d1859f14fda2b6681d99df1f48a.tar.gz
plan9port-e8fb1d3efb114d1859f14fda2b6681d99df1f48a.zip
tr2post and aux/download; download is a shell script in $PLAN9/bin.
Diffstat (limited to 'src/cmd/postscript/tr2post/readDESC.c')
-rw-r--r--src/cmd/postscript/tr2post/readDESC.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/postscript/tr2post/readDESC.c b/src/cmd/postscript/tr2post/readDESC.c
index 4dbc193a..600fc174 100644
--- a/src/cmd/postscript/tr2post/readDESC.c
+++ b/src/cmd/postscript/tr2post/readDESC.c
@@ -44,7 +44,7 @@ readDESC(void) {
char *descnameformat = "%s/dev%s/DESC";
char *descfilename = 0;
Biobuf *bfd;
- Biobufhdr *Bfd;
+ Biobuf *Bfd;
int i, state = -1;
int fontindex = 0;
@@ -52,7 +52,7 @@ readDESC(void) {
descfilename = galloc(descfilename, strlen(descnameformat)+strlen(FONTDIR)
+strlen(devname), "readdesc");
sprint(descfilename, descnameformat, FONTDIR, devname);
- if ((bfd = Bopen(descfilename, OREAD)) == 0) {
+ if ((bfd = Bopen(unsharp(descfilename), OREAD)) == 0) {
error(WARNING, "cannot open file %s\n", descfilename);
return(0);
}
@@ -136,4 +136,5 @@ readDESC(void) {
}
}
Bterm(Bfd);
+ return 0;
}