summaryrefslogtreecommitdiff
path: root/usr.bin/look
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-04-28 12:39:12 +0000
committerMark Murray <markm@FreeBSD.org>2002-04-28 12:39:12 +0000
commit9e5ff032b559464580278dec91d98ce13d6848a3 (patch)
treed14914f161254e2cf9413da805d1794480175712 /usr.bin/look
parent900d70a0c0fb2ad8808649c13cd1286cfe15bc06 (diff)
downloadsrc-test-9e5ff032b559464580278dec91d98ce13d6848a3.tar.gz
src-test-9e5ff032b559464580278dec91d98ce13d6848a3.zip
Fix a const-char vs char issue.
Notes
Notes: svn path=/head/; revision=95646
Diffstat (limited to 'usr.bin/look')
-rw-r--r--usr.bin/look/look.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/look/look.c b/usr.bin/look/look.c
index 2fc332f8975be..d43e6aeef5ca5 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) {