projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e5230e
)
gpllib: add const qualifier in cpu_dev (cpuid)
author
Pierre-Alexandre Meyer
<pierre@mouraf.org>
Thu, 3 Sep 2009 17:28:00 +0000
(10:28 -0700)
committer
Pierre-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
patch
|
blob
|
history
diff --git
a/com32/gplinclude/cpuid.h
b/com32/gplinclude/cpuid.h
index
9e21cf9
..
f984751
100644
(file)
--- 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;
+ c
onst c
har *c_vendor;
/* some have two possibilities for cpuid string */
- char *c_ident[2];
+ c
onst c
har *c_ident[2];
struct cpu_model_info c_models[4];