The documentation says that it should be, and I agree.
* to know what C or S actually are.
*/
* to know what C or S actually are.
*/
-void *sod_convert(const SodClass *cls, void *p)
+void *sod_convert(const SodClass *cls, const void *p)
{
const struct sod_instance *inst = p;
const struct sod_vtable *vt = inst->_vt;
{
const struct sod_instance *inst = p;
const struct sod_vtable *vt = inst->_vt;
* to know what either C or S actually are.
*/
* to know what either C or S actually are.
*/
-extern void *sod_convert(const SodClass */*cls*/, void */*p*/);
+extern void *sod_convert(const SodClass */*cls*/, const void */*p*/);
/*----- That's all, folks -------------------------------------------------*/
/*----- That's all, folks -------------------------------------------------*/