From ac7d1b151cefb677611c48c1093bbf5140d1378a Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Mon, 22 Apr 2002 23:08:07 +0000 Subject: [PATCH] Add 'const' to some casts to fix two warnings that are printed by the new gcc (on sparc64). MFC after: 4 days --- usr.sbin/lpr/common_source/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c index 122ec315cb02..5818cd7b8c01 100644 --- a/usr.sbin/lpr/common_source/common.c +++ b/usr.sbin/lpr/common_source/common.c @@ -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);