ValidateStoreReceipt icon indicating copy to clipboard operation
ValidateStoreReceipt copied to clipboard

const compiler warnings

Open countach opened this issue 13 years ago • 2 comments

Several places in the code where there are compiler warnings due to lack of const. e.g.

unsigned char const * p = octets->data;

Maybe the author doesn't know the trick of writing C consts. Read the C code right to left like this:

char const * const * const xxx;

You read this right to left to say "xxx is a constant pointer to a constant pointer to constant chars. Remember this trick, and you won't get confused with consts.

countach avatar Nov 19 '10 00:11 countach

i used [ const unsgned char * p = octets->data; ] and got rid of the errors

is it ok ?

Nonnus avatar Feb 06 '11 22:02 Nonnus

This issue should be resolved now: https://github.com/roddi/ValidateStoreReceipt/commit/75f7b199f8cc2c5194b49ec8421dd2430182745d

kgn avatar Feb 11 '11 22:02 kgn