Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Const poisoning of cpu/class names.



details:   https://anonhg.NetBSD.org/src/rev/16d5ed67af20
branches:  trunk
changeset: 517094:16d5ed67af20
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Nov 06 20:39:13 2001 +0000

description:
Const poisoning of cpu/class names.

diffstat:

 sys/arch/arm/arm32/cpu.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 7aeea79cde25 -r 16d5ed67af20 sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c  Tue Nov 06 20:02:13 2001 +0000
+++ b/sys/arch/arm/arm32/cpu.c  Tue Nov 06 20:39:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.8 2001/11/06 20:02:13 thorpej Exp $  */
+/*     $NetBSD: cpu.c,v 1.9 2001/11/06 20:39:13 thorpej Exp $  */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -251,7 +251,7 @@
 struct cpuidtab {
        u_int32_t       cpuid;
        enum            cpu_class cpu_class;
-       char *          cpu_name;
+       const char      *cpu_name;
 };
 
 const struct cpuidtab cpuids[] = {
@@ -285,8 +285,8 @@
 };
 
 struct cpu_classtab {
-       char    *class_name;
-       char    *class_option;
+       const char      *class_name;
+       const char      *class_option;
 };
 
 const struct cpu_classtab cpu_classes[] = {



Home | Main Index | Thread Index | Old Index