]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r318257,r318278:
authorngie <ngie@FreeBSD.org>
Tue, 18 Jul 2017 08:35:22 +0000 (08:35 +0000)
committerngie <ngie@FreeBSD.org>
Tue, 18 Jul 2017 08:35:22 +0000 (08:35 +0000)
commit819b6c77f5627324656f0a3a3c84d48cea06df85
tree3357634ababb25a700d72f016318ca448a91b28f
parent1eb97000fe25ac2d7ab799065b6555b697b4b11f
MFC r318257,r318278:

r318257:

style(9): sort headers

r318278:

Mark errf _Noreturn, and mark errf and warn __printflike

The _Noreturn attribute was added to placate Coverity and other static
analysis tools. The __printflike attribute was added to catch issues
with the calls related to printf(3) abuse.

- Modify the code to facilitate the __printflike attribute addition.
- Convert errf calls in to_mb(..) and to_mb_string(..) to warn(..) so
  the calls will return instead of exiting, as the code suggests it
  should.
usr.bin/localedef/localedef.c
usr.bin/localedef/localedef.h
usr.bin/localedef/wide.c