aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-vasprintf.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-07-15 19:33:01 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-07-15 19:33:01 +0000
commit7be71b94a8ef4f8dd907990987d02db901b5efda (patch)
tree41e73ed733ddb6a56f9e053476812509a17ac148 /test-vasprintf.c
parentd3d6f7026424951a4de6ff2d186755d537a6f030 (diff)
downloadmandoc-7be71b94a8ef4f8dd907990987d02db901b5efda.tar.gz
mandoc-7be71b94a8ef4f8dd907990987d02db901b5efda.tar.zst
mandoc-7be71b94a8ef4f8dd907990987d02db901b5efda.zip
To remove the const qualifier from a pointer to an object - either
because we know it is actually mutable or because we are passing it to a function that doesn't accept a const object but won't actually attempt to modify it - simply casting from (const type *) to (type *) is legal C and clearly expresses the intent. So get rid of the obfuscating UNCONST macro. Basic idea discussed with guenther@.
Diffstat (limited to 'test-vasprintf.c')
0 files changed, 0 insertions, 0 deletions