From c93e27af183de1cdf591706448d42887d0fbc0eb Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Thu, 3 Sep 2009 10:28:00 -0700 Subject: [PATCH] gpllib: add const qualifier in cpu_dev (cpuid) 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 --- com32/gplinclude/cpuid.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com32/gplinclude/cpuid.h b/com32/gplinclude/cpuid.h index 9e21cf9..f984751 100644 --- a/com32/gplinclude/cpuid.h +++ b/com32/gplinclude/cpuid.h @@ -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]; -- 2.7.4