diff options
author | gad <gad@FreeBSD.org> | 2002-04-22 23:08:07 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2002-04-22 23:08:07 +0000 |
commit | 231257ddcfa7002fc173e630a249a59da6b95ad0 (patch) | |
tree | 16b93835683905c264aed5189bd7b244d0ca9420 /usr.sbin/lpr/common_source | |
parent | c62b045a3434fa70b1d599b64a749c06f10808b3 (diff) | |
download | FreeBSD-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.c | 4 |
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); |