F Florian Weimer #
Message details and related content
* Mikhail Gavrilov:
quoted hunk
- Use explicit casts instead of changing variable types to const char *, because the variables are already declared as char * earlier in the functions and used in contexts requiring mutability. This is common practice in the kernel when full const-correctness cannot be preserved without major refactoring.
What kind of mutability is this about? Obviously char *const won't
work, but const char * seems to be fine for these variables?
Thanks,
Florian