summaryrefslogtreecommitdiffstats
path: root/src/cmd/troff/n8.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/n8.c
parente98091cf8d836fca982a5baac166e138edd670b1 (diff)
downloadplan9port-1f72bc47fe416f8fa00d8cea27ee1482fba28c20.tar.gz
plan9port-1f72bc47fe416f8fa00d8cea27ee1482fba28c20.zip
Tweak to make troff compile silently.
Diffstat (limited to 'src/cmd/troff/n8.c')
-rw-r--r--src/cmd/troff/n8.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/cmd/troff/n8.c b/src/cmd/troff/n8.c
index bace4aae..ded45438 100644
--- a/src/cmd/troff/n8.c
+++ b/src/cmd/troff/n8.c
@@ -461,19 +461,13 @@ static int texit(Tchar *start, Tchar *end) /* hyphenate as in tex, return # foun
characters. sigh.
*/
-extern char *unsharp(char*);
-
-static char *texhyphens;
-
static int readpats(void)
{
FILE *fp;
char buf[200], buf1[200];
- if(texhyphens == 0)
- texhyphens = unsharp(TEXHYPHENS);
- if ((fp = fopen(texhyphens, "r")) == NULL
- && (fp = fopen(DWBalthyphens, "r")) == NULL) {
+ if ((fp = fopen(unsharp(TEXHYPHENS), "r")) == NULL
+ && (fp = fopen(unsharp(DWBalthyphens), "r")) == NULL) {
ERROR "warning: can't find hyphen.tex" WARN;
return 0;
}