diff options
author | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-09-03 10:28:00 -0700 |
---|---|---|
committer | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-09-03 10:28:00 -0700 |
commit | c93e27af183de1cdf591706448d42887d0fbc0eb (patch) | |
tree | 88ea31b8ba491a3462a7b8b5253347b4ed4ac88b /com32/gplinclude/cpuid.h | |
parent | 5e5230ec259d20b99557f2b44c0bacf56789fe11 (diff) | |
download | syslinux-c93e27af183de1cdf591706448d42887d0fbc0eb.tar.gz |
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 <pierre@mouraf.org>
Diffstat (limited to 'com32/gplinclude/cpuid.h')
-rw-r--r-- | com32/gplinclude/cpuid.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/gplinclude/cpuid.h b/com32/gplinclude/cpuid.h index 9e21cf98..f984751f 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]; |