diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2004-12-08 12:59:27 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2004-12-08 12:59:27 +0000 |
commit | db7ce92a3c6b848f5b194992c91e029567dfa458 (patch) | |
tree | be6ee2e0eedc8795d8fb1d4031e9daf8fdaee4ee /usr.bin/make/job.c | |
parent | b697270ad8255d32383416a3364da89653a1949f (diff) | |
download | src-db7ce92a3c6b848f5b194992c91e029567dfa458.tar.gz src-db7ce92a3c6b848f5b194992c91e029567dfa458.zip |
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)
Notes
Notes:
svn path=/head/; revision=138561
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r-- | usr.bin/make/job.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } /*- |