summaryrefslogtreecommitdiffstats
path: root/usr.bin/look
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-04-28 12:39:12 +0000
committermarkm <markm@FreeBSD.org>2002-04-28 12:39:12 +0000
commitd642bb3e8a212d4e748595df3143085e3cb8f101 (patch)
treed14914f161254e2cf9413da805d1794480175712 /usr.bin/look
parentbf0d40842d105b74876c2d4d55c2cb34654c8e55 (diff)
downloadFreeBSD-src-d642bb3e8a212d4e748595df3143085e3cb8f101.zip
FreeBSD-src-d642bb3e8a212d4e748595df3143085e3cb8f101.tar.gz
Fix a const-char vs char issue.
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 2fc332f..d43e6ae 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) {
OpenPOWER on IntegriCloud