Const correctness of arg to toolbox_template_lookup()
The pointer whose address is passed in argument hdr
will, on exit, point into
memory that is managed by the Toolbox module, and which therefore should not be
written by the callee (for example the module should be within its rights to
re-use the same location to service another similar call). The pointer should
therefore have type const ObjectTemplateHeader *
, so hdr
should have type
const ObjectTemplateHeader **
to save well-behaved clients from having to
use a typecast.
If nobody has any major objections to this, I have matching tweaks to the callers of the function in Config2Main, FilrSetup, PinSetup, ScrnSetup, SndSetup, and WindSetup ready to merge also.