diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-13 13:51:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:12 -0700 |
commit | 44f9f07e8346f31ec70884b8ecbc120cf4f6d3a5 (patch) | |
tree | 6c9ccac503688aec58d5bed9560efb3bc0cd4616 /token.h | |
parent | Janitorial trivialities. (diff) | |
download | sparse-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |