On Wed, Mar 16, 2016 at 11:28:30AM +0100, Harald Welte wrote:
Why does gsm48_hdr_pdisc() not take a 'const
struct gsm48_hdr *'
argument in the first place? I don't think it modifies the contents of
the structure...
Yes, Holger has applied the patch with exactly that change.
Yet this has me confused. A while back I concluded that C doesn't allow
passing non-const instances to functions that expect a const arg. That was
discussed on this list in January:
http://lists.osmocom.org/pipermail/openbsc/2016-January/001051.html
http://lists.osmocom.org/pipermail/openbsc/2016-January/001055.html
How is this different from the conclusion that Jacob confirmed two months
ago? Is it int (primitives) vs. struct??
Thanks!
~Neels