Description: |
In tclPkg.c I encountered a
const char *versionToProvide
which should not have been const at all. The reason
that the compiler did not complain were type
casts to (ClientData). The danger of such type
casts is that the casted pointer could be "const",
and then the const'ness is cast away silencing
the compiler.
So, I scanned the code for casts to ClientData.
The bug in tclPkg.c is the only bug I found,
but many casts to ClientData simply are
not necessary at all. Here is a patch which
removes all unnecessary type casts to ClientData.
|