summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2002-04-22 23:08:07 +0000
committergad <gad@FreeBSD.org>2002-04-22 23:08:07 +0000
commit231257ddcfa7002fc173e630a249a59da6b95ad0 (patch)
tree16b93835683905c264aed5189bd7b244d0ca9420 /usr.sbin/lpr/common_source
parentc62b045a3434fa70b1d599b64a749c06f10808b3 (diff)
downloadFreeBSD-src-231257ddcfa7002fc173e630a249a59da6b95ad0.zip
FreeBSD-src-231257ddcfa7002fc173e630a249a59da6b95ad0.tar.gz
Add 'const' to some casts to fix two warnings that are printed by the
new gcc (on sparc64). MFC after: 4 days
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r--usr.sbin/lpr/common_source/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/common_source/common.c b/usr.sbin/lpr/common_source/common.c
index 122ec31..5818cd7 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);
OpenPOWER on IntegriCloud