Fix `clang -Wcast-qual` issues
authorEnji Cooper <ngie@FreeBSD.org>
Sat, 4 May 2019 02:09:30 +0000 (02:09 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Sat, 4 May 2019 02:09:30 +0000 (02:09 +0000)
commita6e9cd258c88d0826884491bd9177a98b3c78510
tree22c06a53b0a1d8febbe1f44c6b53404fc3c661ee
parent0061238fb0365ac840d1e039f2391ed24fcad2d1
Fix `clang -Wcast-qual` issues

Remove unnecessary `char*` casting for arguments passed to `cget*(3)`, and
deconst `_PATH_PRINTCAP` before passing it to `cget*` via the `printcapdb`
variable.

This unblocks ^/projects/runtime-coverage-v2 from building cleanly on
universe13a.freebsd.org. I suspect the issue was introduced through some
changes to `bsd.*.mk` inclusion on the branch, which I will continue to
investigate/isolate.

MFC after: 1 week
Tested with: clang 8 (arm64)
usr.sbin/lpr/common_source/printcap.c