11334 file: NULL pointer errors
Review Request #2070 — Created July 6, 2019 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
11334 | |
c0d3536... | |
Reviewers | |
general | |
magicutils.c: In function 'f_mkmtab': magicutils.c:309:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion] *p2++ = NULL; ^ magicutils.c:323:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion] *p2++ = NULL; ^ magicutils.c:334:16: error: comparison between pointer and integer [-Werror] if (*(p+1) == NULL) { ^~ magicutils.c:337:23: error: comparison between pointer and integer [-Werror] } else if (*(p+2) == NULL) { /* d? */ ^~ magicutils.c:382:16: error: comparison between pointer and integer [-Werror] if (*(p+1) == NULL) { ^~ magicutils.c:385:23: error: comparison between pointer and integer [-Werror] } else if (*(p+2) == NULL) { /* u? */ ^~ magicutils.c:455:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion] *p2++ = NULL; ^