summaryrefslogtreecommitdiffstats
path: root/src/cmd/troff/t11.c
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-05-17 02:23:11 +0000
committerwkj <devnull@localhost>2004-05-17 02:23:11 +0000
commit1f72bc47fe416f8fa00d8cea27ee1482fba28c20 (patch)
treede3d265ad04b75af97bb591189534232c2ac9b81 /src/cmd/troff/t11.c
parente98091cf8d836fca982a5baac166e138edd670b1 (diff)
downloadplan9port-1f72bc47fe416f8fa00d8cea27ee1482fba28c20.tar.gz
plan9port-1f72bc47fe416f8fa00d8cea27ee1482fba28c20.zip
Tweak to make troff compile silently.
Diffstat (limited to 'src/cmd/troff/t11.c')
-rw-r--r--src/cmd/troff/t11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/troff/t11.c b/src/cmd/troff/t11.c
index 398d74da..f930d8b1 100644
--- a/src/cmd/troff/t11.c
+++ b/src/cmd/troff/t11.c
@@ -24,7 +24,7 @@ getdesc(char *name)
char cmd[100], s[100];
int i, v;
- if ((fin = fopen(name, "r")) == NULL)
+ if ((fin = fopen(unsharp(name), "r")) == NULL)
return -1;
while (fscanf(fin, "%s", cmd) != EOF) {
if (strcmp(cmd, "res") == 0) {
@@ -65,7 +65,7 @@ static int checkfont(char *name)
char buf[300], buf2[300];
int i, status = -1;
- if ((fp = fopen(name, "r")) == NULL)
+ if ((fp = fopen(unsharp(name), "r")) == NULL)
return -1;
for (i = 1; i <= 10; i++) {
if (fgets(buf, sizeof buf, fp) == NULL)
@@ -100,7 +100,7 @@ getfont(char *name, int pos) /* create width tab for font */
/* fprintf(stderr, "read font %s onto %d\n", name, pos); */
if (checkfont(name) == -1)
return -1;
- if ((fin = fopen(name, "r")) == NULL)
+ if ((fin = fopen(unsharp(name), "r")) == NULL)
return -1;
for (i = 0; i < ALPHABET; i++)
chtemp[i] = chinit; /* zero out to begin with */