]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r309364 r309367 r309624
authorvangyzen <vangyzen@FreeBSD.org>
Tue, 13 Dec 2016 23:09:22 +0000 (23:09 +0000)
committervangyzen <vangyzen@FreeBSD.org>
Tue, 13 Dec 2016 23:09:22 +0000 (23:09 +0000)
commit34833cbaa456debb581964b8aa814d93b7da0082
treed1f2ade7a7ca285c9f60fa8c8c8515c88f492351
parentca7cc4c0b0dce0fbfd12ffbaefd066b7e949b135
MFC r309364 r309367 r309624

locale: fix buffer management

Also, handle signed and unsigned chars, and more gracefully handle
invalid input.

locale: enable more warnings; fix them

Do not set WARNS, so it gets the current default of 6.
Fix the warnings by sprinkling static, const, or strdup.
Make some constant data tables const.  Fix whitespace.

Sponsored by: Dell EMC
usr.bin/locale/Makefile
usr.bin/locale/locale.c