diff options
author | tijl <tijl@FreeBSD.org> | 2014-06-20 07:32:03 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-06-20 07:32:03 +0000 |
commit | de4e2206d57bda2268e6b69f09b86ff63cc71f8e (patch) | |
tree | 60af671abf1bc0d1bc97daa15754adcb118b899b /sys/xdr/xdr_reference.c | |
parent | 7944ea7242fccf98384460100e2b5e384628fa89 (diff) | |
download | FreeBSD-src-de4e2206d57bda2268e6b69f09b86ff63cc71f8e.zip FreeBSD-src-de4e2206d57bda2268e6b69f09b86ff63cc71f8e.tar.gz |
MFC r267436-267439:
- Replace malloc+memset with calloc.
- iconv_open(3): initialise ci_ilseq_invalid field of _citrus_iconv_shared
struct after allocation with malloc.
- iconvlist(3): reduce a memory leak by copying strings only once.
- iconv(1):
- Make invalids variable local to do_conv such that it prints the number
of invalid characters of the current file instead of an accumulated
value.
- Make do_conv return an error when invalid characters have been found.
Return EXIT_FAILURE from main if any file contained invalid characters.
This matches the behaviour of GNU iconv.
- Mark usage with __dead2 attribute.
- Make the long_options array const.
Tested by: Pavel Timofeev <timp87@gmail.com>
Diffstat (limited to 'sys/xdr/xdr_reference.c')
0 files changed, 0 insertions, 0 deletions