2014-11-19 22:49 GMT+03:00 Florian Weimer <fw@xxxxxxxxxxxxx>: > (ffi.cast is the wrong way to tackle this.) > There are some cases (like [1]) where it's sane enough to do so. Not everyone do remember to always specify function arguments as `const` and it is known that character buffer will not be modified. But I agree that it would be better to add the `const` specified at all levels down to the actual C source. [1] https://apr.apache.org/docs/apr/1.5/group__apr__network__io.html#ga270b7c0835283fa2b85a05d295dd7ee5 -- Regards, Konstantin