diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2009-03-19 19:11:15 +1100 | 
|---|---|---|
| committer | Günther Deschner <gd@samba.org> | 2009-04-07 20:51:55 +0200 | 
| commit | 5fff53882002bf5378690ddeb8251e2c99490266 (patch) | |
| tree | 88e4e69bd93f12b66e8738b082c62419fe8a076a /source3/lib | |
| parent | c4ad3e57ff23b3a64e8a351c4b5466eabe52f3f1 (diff) | |
| download | samba-5fff53882002bf5378690ddeb8251e2c99490266.tar.gz samba-5fff53882002bf5378690ddeb8251e2c99490266.tar.bz2 samba-5fff53882002bf5378690ddeb8251e2c99490266.zip  | |
s3:charcnv Remove unused ucs2_to_unistr2()
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/lib')
| -rw-r--r-- | source3/lib/util_unistr.c | 46 | 
1 files changed, 0 insertions, 46 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 840e8e06da..178bbc7e94 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -1003,52 +1003,6 @@ int unistrcpy(uint16 *dst, uint16 *src)  	return num_wchars;  } -/** - * Samba ucs2 type to UNISTR2 conversion - * - * @param ctx Talloc context to create the dst strcture (if null) and the  - *            contents of the unicode string. - * @param dst UNISTR2 destination. If equals null, then it's allocated. - * @param src smb_ucs2_t source. - * @param max_len maximum number of unicode characters to copy. If equals - *        null, then null-termination of src is taken - * - * @return copied UNISTR2 destination - **/ - -UNISTR2* ucs2_to_unistr2(TALLOC_CTX *ctx, UNISTR2* dst, smb_ucs2_t* src) -{ -	size_t len; - -	if (!src) { -		return NULL; -	} - -	len = strlen_w(src); -	 -	/* allocate UNISTR2 destination if not given */ -	if (!dst) { -		dst = TALLOC_P(ctx, UNISTR2); -		if (!dst) -			return NULL; -	} -	if (!dst->buffer) { -		dst->buffer = TALLOC_ARRAY(ctx, uint16, len + 1); -		if (!dst->buffer) -			return NULL; -	} -	 -	/* set UNISTR2 parameters */ -	dst->uni_max_len = len + 1; -	dst->offset = 0; -	dst->uni_str_len = len; -	 -	/* copy the actual unicode string */ -	strncpy_w(dst->buffer, src, dst->uni_max_len); -	 -	return dst; -} -  /*************************************************************   ascii only toupper - saves the need for smbd to be in C locale.  *************************************************************/  | 
