From 0137280dccfcfd99b0f3fcedfce4f3e2a5621667 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 25 Aug 2015 10:23:50 +0100 Subject: [PATCH] lib/sod.[ch] (sod_convert): Make the instance argument be `const void *'. The documentation says that it should be, and I agree. --- lib/sod.c | 2 +- lib/sod.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sod.c b/lib/sod.c index bd600f9..bcaf6f6 100644 --- a/lib/sod.c +++ b/lib/sod.c @@ -108,7 +108,7 @@ int sod_subclassp(const SodClass *sub, const SodClass *super) * 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; diff --git a/lib/sod.h b/lib/sod.h index 6a444e9..7f18f35 100644 --- a/lib/sod.h +++ b/lib/sod.h @@ -188,7 +188,7 @@ extern int sod_subclassp(const SodClass */*sub*/, const SodClass */*super*/); * 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 -------------------------------------------------*/ -- 2.11.0