From 9e5ff032b559464580278dec91d98ce13d6848a3 Mon Sep 17 00:00:00 2001 From: Mark Murray Date: Sun, 28 Apr 2002 12:39:12 +0000 Subject: [PATCH] Fix a const-char vs char issue. --- usr.bin/look/look.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c index 2fc332f8975b..d43e6aeef5ca 100644 --- a/usr.bin/look/look.c +++ b/usr.bin/look/look.c @@ -73,6 +73,8 @@ static const char rcsid[] = #include "pathnames.h" +static char _path_words[] = _PATH_WORDS; + /* * FOLD and DICT convert characters to a normal form for comparison, * according to the user specified flags. @@ -110,7 +112,7 @@ main(argc, argv) (void) setlocale(LC_CTYPE, ""); - file = _PATH_WORDS; + file = _path_words; termchar = '\0'; while ((ch = getopt(argc, argv, "dft:")) != -1) switch(ch) {