aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-13 13:51:33 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:12 -0700
commit44f9f07e8346f31ec70884b8ecbc120cf4f6d3a5 (patch)
tree6c9ccac503688aec58d5bed9560efb3bc0cd4616 /token.h
parentJanitorial trivialities. (diff)
downloadsparse-44f9f07e8346f31ec70884b8ecbc120cf4f6d3a5.tar.gz
sparse-44f9f07e8346f31ec70884b8ecbc120cf4f6d3a5.tar.bz2
sparse-44f9f07e8346f31ec70884b8ecbc120cf4f6d3a5.zip
Morten made us almost -Wwrite-strings clean. Go the extra mile.
The only remaining place was the magic constant "0" "1" number token generated by "defined(xxx)". And since we never actually modify number tokens (which would have broken that code anyway), let's just make that const'ness explicit.
Diffstat (limited to 'token.h')
-rw-r--r--token.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/token.h b/token.h
index ecb8ea0..d4defd7 100644
--- a/token.h
+++ b/token.h
@@ -150,7 +150,7 @@ struct token {
struct position pos;
struct token *next;
union {
- char *number;
+ const char *number;
struct ident *ident;
unsigned int special;
struct string *string;