From 8afc271e2a9950fda68e99928746623093cbd6ac Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 18 Feb 2011 10:24:58 +1100 Subject: lib/util/charset Use top level iconv.c in source3 The two files were very similar already, the only change required was to adopt the s3 module registration fucntion name. (NTSTATUS wasn't used as the charset code does not otherwise use that type). Andrew Bartlett Signed-off-by: Andrew Tridgell --- source3/modules/charset_macosxfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/modules/charset_macosxfs.c') diff --git a/source3/modules/charset_macosxfs.c b/source3/modules/charset_macosxfs.c index baf2a0071c..8c2fdc7776 100644 --- a/source3/modules/charset_macosxfs.c +++ b/source3/modules/charset_macosxfs.c @@ -595,7 +595,10 @@ static struct charset_functions macosxfs_encoding_functions = { NTSTATUS charset_macosxfs_init(void) { - return smb_register_charset(&macosxfs_encoding_functions); + if (!smb_register_charset(&macosxfs_encoding_functions)) { + return NT_STATUS_INTERNAL_ERROR; + } + return NT_STATUS_OK; } /* eof */ -- cgit