Module Name: src
Committed By: lukem
Date: Tue Apr 14 08:59:45 UTC 2009
Modified Files:
src/usr.bin/xlint/lint2: hash.c
Log Message:
Fix -Wcast-qual issue
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.bin/xlint/lint2/hash.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint2/hash.c
diff -u src/usr.bin/xlint/lint2/hash.c:1.9 src/usr.bin/xlint/lint2/hash.c:1.10
--- src/usr.bin/xlint/lint2/hash.c:1.9 Sun Jun 20 22:20:17 2004
+++ src/usr.bin/xlint/lint2/hash.c Tue Apr 14 08:59:45 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: hash.c,v 1.9 2004/06/20 22:20:17 jmc Exp $ */
+/* $NetBSD: hash.c,v 1.10 2009/04/14 08:59:45 lukem Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: hash.c,v 1.9 2004/06/20 22:20:17 jmc Exp $");
+__RCSID("$NetBSD: hash.c,v 1.10 2009/04/14 08:59:45 lukem Exp $");
#endif
/*
@@ -159,7 +159,7 @@
for (i = 0; i < HSHSIZ2; i++) {
for (hte = table[i]; hte != NULL; hte = nexthte) {
- free((void *)hte->h_name);
+ free((void *)__UNCONST(hte->h_name));
nexthte = hte->h_link;
free(hte);
}