From c8a5fa3fa938e635327b1d65964ba599a92f233f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 12 Apr 2011 15:25:04 +1000 Subject: s3-charcnv: make pull_ucs2 static Signed-off-by: Andrew Tridgell --- source3/include/proto.h | 1 - source3/lib/charcnv.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index d17da5355e..56ebd00ca7 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -99,7 +99,6 @@ size_t push_ucs2(const void *base_ptr, void *dest, const char *src, size_t dest_ size_t push_utf8_fstring(void *dest, const char *src); bool push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *converted_size); -size_t pull_ucs2(const void *base_ptr, char *dest, const void *src, size_t dest_len, size_t src_len, int flags); bool push_ucs2_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src, size_t *converted_size); bool pull_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 3fd574b985..6e5b606e64 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -971,7 +971,7 @@ bool push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, The resulting string in "dest" is always null terminated. **/ -size_t pull_ucs2(const void *base_ptr, char *dest, const void *src, size_t dest_len, size_t src_len, int flags) +static size_t pull_ucs2(const void *base_ptr, char *dest, const void *src, size_t dest_len, size_t src_len, int flags) { size_t size = 0; size_t ucs2_align_len = 0; -- cgit