Fix -Wcast-qual issue

This commit is contained in:
lukem 2009-04-23 01:39:47 +00:00
parent 74f7394a13
commit b129d71a05
1 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
/* $NetBSD: zic.c,v 1.23 2004/05/27 20:39:49 kleink Exp $ */
/* $NetBSD: zic.c,v 1.24 2009/04/23 01:39:47 lukem Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#ifndef NOID
__RCSID("$NetBSD: zic.c,v 1.23 2004/05/27 20:39:49 kleink Exp $");
__RCSID("$NetBSD: zic.c,v 1.24 2009/04/23 01:39:47 lukem Exp $");
#endif /* !defined NOID */
#endif /* !defined lint */
@ -1426,9 +1426,9 @@ atcomp(avp, bvp)
const void * avp;
const void * bvp;
{
if (((struct attype *) avp)->at < ((struct attype *) bvp)->at)
if (((const struct attype *) avp)->at < ((const struct attype *) bvp)->at)
return -1;
else if (((struct attype *) avp)->at > ((struct attype *) bvp)->at)
else if (((const struct attype *) avp)->at > ((const struct attype *) bvp)->at)
return 1;
else return 0;
}