gpllib: add const qualifier in cpu_dev (cpuid)
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 3 Sep 2009 17:28:00 +0000 (10:28 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 3 Sep 2009 17:28:00 +0000 (10:28 -0700)
The Syslinux build turns on -Wwrite-strings, which gives string constants
the type const char[length].

Note: -Wall doesn't trigger this warning.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/gplinclude/cpuid.h

index 9e21cf9..f984751 100644 (file)
@@ -168,10 +168,10 @@ struct cpu_model_info {
 
 /* attempt to consolidate cpu attributes */
 struct cpu_dev {
-    char *c_vendor;
+    const char *c_vendor;
 
     /* some have two possibilities for cpuid string */
-    char *c_ident[2];
+    const char *c_ident[2];
 
     struct cpu_model_info c_models[4];