1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Add 'const' to some casts to fix two warnings that are printed by the

new gcc (on sparc64).

MFC after:	4 days
This commit is contained in:
Garance A Drosehn 2002-04-22 23:08:07 +00:00
parent 003dbca6a6
commit ac7d1b151c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95290

View File

@ -181,8 +181,8 @@ compar(const void *p1, const void *p2)
{
const struct jobqueue *qe1, *qe2;
qe1 = *(const struct jobqueue **)p1;
qe2 = *(const struct jobqueue **)p2;
qe1 = *(const struct jobqueue * const *)p1;
qe2 = *(const struct jobqueue * const *)p2;
if (qe1->job_time < qe2->job_time)
return (-1);