Skip to content

const compiler warnings #3

@countach

Description

@countach

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions