Don't declare variables as "unsigned char *" that are passed to
authornaddy <naddy@openbsd.org>
Fri, 15 Oct 2021 15:01:27 +0000 (15:01 +0000)
committernaddy <naddy@openbsd.org>
Fri, 15 Oct 2021 15:01:27 +0000 (15:01 +0000)
commit08f6ba1906d01c4a24fa700d568400f71bcf9611
treef8ab70752345a1512617efecf27e4cdaa450012f
parent88549df51ff400f3bab7dd1ee92d4f6fd526b715
Don't declare variables as "unsigned char *" that are passed to
functions that take "char *" arguments.  Where such chars are
assigned to int or passed to ctype functions, explicitly cast them
to unsigned char.

For OpenBSD's clang, -Wpointer-sign has been disabled by default,
but when the parse.y code was built elsewhere, the compiler would
complain.

With help from millert@
ok benno@ deraadt@
31 files changed:
bin/chio/parse.y
sbin/dhcpleased/parse.y
sbin/iked/parse.y
sbin/ipsecctl/parse.y
sbin/pfctl/parse.y
sbin/unwind/parse.y
usr.sbin/acme-client/parse.y
usr.sbin/bgpd/parse.y
usr.sbin/dvmrpd/parse.y
usr.sbin/eigrpd/parse.y
usr.sbin/hostapd/parse.y
usr.sbin/httpd/parse.y
usr.sbin/ifstated/parse.y
usr.sbin/iscsictl/parse.y
usr.sbin/ldapd/parse.y
usr.sbin/ldomctl/parse.y
usr.sbin/ldpd/parse.y
usr.sbin/lpd/parse.y
usr.sbin/npppd/npppd/parse.y
usr.sbin/ntpd/parse.y
usr.sbin/ospf6d/parse.y
usr.sbin/ospfd/parse.y
usr.sbin/rad/parse.y
usr.sbin/radiusd/parse.y
usr.sbin/relayd/parse.y
usr.sbin/ripd/parse.y
usr.sbin/smtpd/parse.y
usr.sbin/snmpd/parse.y
usr.sbin/switchd/parse.y
usr.sbin/vmd/parse.y
usr.sbin/ypldap/parse.y