diff --git a/Makefile b/Makefile index e508990..4ac9244 100644 --- a/Makefile +++ b/Makefile @@ -178,7 +178,7 @@ region.o: region.c region.h estruct.h line.h utf8.h retcode.h edef.h \ search.o: search.c search.h estruct.h line.h utf8.h retcode.h basic.h \ display.h edef.h input.h log.h spawn.o: spawn.c spawn.h buffer.h estruct.h line.h utf8.h retcode.h \ - display.h edef.h file.h input.h log.h window.h + display.h edef.h file.h flook.h input.h log.h window.h tcap.o: tcap.c display.h estruct.h line.h utf8.h retcode.h edef.h \ termio.h termio.o: termio.c termio.h estruct.h line.h utf8.h retcode.h edef.h diff --git a/flook.c b/flook.c index 403f9fd..cb2b844 100644 --- a/flook.c +++ b/flook.c @@ -72,9 +72,9 @@ boolean fexist( const char *fname) * asked and possible * * char *fname; base file name to search for - * int hflag; Look in the HOME environment variable first? + * boolean hflag; Look in the HOME environment variable first? */ -char *flook( const char *fname, int hflag) +char *flook( const char *fname, boolean hflag) { int i; /* index */ static char fspec[NSTRING]; /* full path spec to search */ diff --git a/flook.h b/flook.h index cfcd1cd..e56358c 100644 --- a/flook.h +++ b/flook.h @@ -8,5 +8,5 @@ extern const char *pathname[] ; boolean fexist( const char *fname) ; -char *flook( const char *fname, int hflag) ; +char *flook( const char *fname, boolean hflag) ; diff --git a/spawn.c b/spawn.c index 3f61036..6342b63 100644 --- a/spawn.c +++ b/spawn.c @@ -16,6 +16,7 @@ #include "estruct.h" #include "edef.h" #include "file.h" +#include "flook.h" #include "input.h" #include "log.h" #include "window.h" @@ -579,7 +580,6 @@ int execprog(char *cmd) char *fcb1; /* 4 byte pointer to FCB at PSP+5Ch */ char *fcb2; /* 4 byte pointer to FCB at PSP+6Ch */ } pblock; - char *flook( const char *fname, int hflag) ; /* parse the command name from the command line */ sp = prog;