Module Name:    src
Committed By:   lukem
Date:           Thu Apr 23 01:39:47 UTC 2009

Modified Files:
        src/lib/libc/time: zic.c

Log Message:
Fix -Wcast-qual issue


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/zic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/time/zic.c
diff -u src/lib/libc/time/zic.c:1.23 src/lib/libc/time/zic.c:1.24
--- src/lib/libc/time/zic.c:1.23	Thu May 27 20:39:49 2004
+++ src/lib/libc/time/zic.c	Thu Apr 23 01:39:47 2009
@@ -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 @@
 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;
 }

Reply via email to