From b2e37d9ce12627883ff18ab22ed9d3b6233f6baf Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 8 Apr 2011 12:55:28 +1000 Subject: lib/util ucs2_align is identical, put it in common Signed-off-by: Andrew Tridgell --- source3/lib/charcnv.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index edcccc25e7..a8719070c3 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -632,13 +632,6 @@ char *strlower_talloc(TALLOC_CTX *ctx, const char *s) { return talloc_strdup_lower(ctx, s); } -size_t ucs2_align(const void *base_ptr, const void *p, int flags) -{ - if (flags & (STR_NOALIGN|STR_ASCII)) - return 0; - return PTR_DIFF(p, base_ptr) & 1; -} - /** * Copy a string from a char* unix src to a dos codepage string destination. -- cgit