From db7ce92a3c6b848f5b194992c91e029567dfa458 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Wed, 8 Dec 2004 12:59:27 +0000 Subject: 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 (partly) --- usr.bin/make/job.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/make/job.c') diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 5088c2ef1b6a..adde86e5dc35 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -284,7 +284,6 @@ static sig_atomic_t interrupted; static int JobCondPassSig(void *, void *); static void JobPassSig(int); -static int JobCmpPid(void *, void *); static int JobPrintCommand(void *, void *); static int JobSaveCommand(void *, void *); static void JobClose(Job *); @@ -424,10 +423,10 @@ JobPassSig(int signo) *----------------------------------------------------------------------- */ static int -JobCmpPid(void *job, void *pid) +JobCmpPid(const void *job, const void *pid) { - return (*(int *)pid - ((Job *)job)->pid); + return (*(const int *)pid - ((const Job *)job)->pid); } /*- -- cgit v1.2.3