summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/dir.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-12-08 12:59:27 +0000
committerharti <harti@FreeBSD.org>2004-12-08 12:59:27 +0000
commit4dcbfdf87679aeeb6ab14b3272848b094c225c1a (patch)
treebe6ee2e0eedc8795d8fb1d4031e9daf8fdaee4ee /usr.bin/make/dir.c
parent96f1216abd0ae24d31b1c660fdbeeb17f1cca646 (diff)
downloadFreeBSD-src-4dcbfdf87679aeeb6ab14b3272848b094c225c1a.zip
FreeBSD-src-4dcbfdf87679aeeb6ab14b3272848b094c225c1a.tar.gz
Constify the arguments to the list compare function. This temporarily
requires to make a copy of the filename in ReadMakefile and to duplicate two small functions in suff.c. This hopefully will go away when everything is constified. Submitted by: Max Okumoto <okumoto@ucsd.edu> (partly)
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r--usr.bin/make/dir.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c
index 861da59..c4ed050 100644
--- a/usr.bin/make/dir.c
+++ b/usr.bin/make/dir.c
@@ -189,7 +189,6 @@ static Path *dot; /* contents of current directory */
*/
static Hash_Table mtimes;
-static int DirFindName(void *, void *);
static int DirPrintWord(void *, void *);
static int DirPrintDir(void *, void *);
@@ -283,10 +282,10 @@ Dir_End(void)
*-----------------------------------------------------------------------
*/
static int
-DirFindName(void *p, void *dname)
+DirFindName(const void *p, const void *dname)
{
- return (strcmp(((Path *)p)->name, dname));
+ return (strcmp(((const Path *)p)->name, dname));
}
/*-
OpenPOWER on IntegriCloud