24-07-2015, 01:39 PM
fpeelo Wrote:typedef struct s_EthBuf *TEthBuf;
typedef struct s_EthBuf const *CTEthBuf;
Sorry, that latter type should have been
typedef const struct s_EthBuf *CTEthBuf;
It's for rule 8.13
But whichever way around it's put, PC-Lint still recognises TEthBuf and CTEthBuf as distinct types, so a function with a parameter TEthBuf cannot pass it to a function which takes CTEthBuf, or const struct s_EthBuf *
<t></t>