From 859468b767596322570d42420f7177383ba34ea0 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 19 Aug 1988 14:25:59 +0000 Subject: [PATCH] made easier to patch --- util/ack/main.c | 4 ++-- util/ack/rmach.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util/ack/main.c b/util/ack/main.c index a66b94460..dc28af743 100644 --- a/util/ack/main.c +++ b/util/ack/main.c @@ -7,7 +7,6 @@ #include "ack.h" #include "list.h" #include "trans.h" -#include #include #include "data.h" #include @@ -122,11 +121,12 @@ char *getsuffix() { varinit() { /* initialize the string variables */ register char *envstr ; + extern char em_dir[]; if ( envstr=getenv("EM_DIR") ) { setsvar(keeps(HOME),keeps(envstr)) ; } else { - setsvar(keeps(HOME),keeps(EM_DIR)) ; + setsvar(keeps(HOME),keeps(em_dir)) ; } setpvar(keeps(SRC),srcvar) ; setpvar(keeps(SUFFIX),getsuffix) ; diff --git a/util/ack/rmach.c b/util/ack/rmach.c index 02446dc61..4f2f480df 100644 --- a/util/ack/rmach.c +++ b/util/ack/rmach.c @@ -280,7 +280,7 @@ static int incore ; static growstring rline ; static FILE *infile ; static char *inptr ; -static char em_dir[100] = EM_DIR; /* this way it is easier to +char em_dir[100] = EM_DIR; /* this way it is easier to * patch ... */