From 1f72bc47fe416f8fa00d8cea27ee1482fba28c20 Mon Sep 17 00:00:00 2001 From: wkj Date: Mon, 17 May 2004 02:23:11 +0000 Subject: Tweak to make troff compile silently. --- src/cmd/troff/n8.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/cmd/troff/n8.c') 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; } -- cgit v1.2.3