1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

Remove align_string(). No longer used.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Aug 22 20:38:50 CEST 2012 on sn-devel-104
This commit is contained in:
Jeremy Allison 2012-08-21 15:48:38 -07:00
parent 7eee4947f3
commit 63ea42853c
2 changed files with 0 additions and 12 deletions

View File

@ -83,7 +83,6 @@ size_t pull_string_talloc(TALLOC_CTX *ctx,
const void *src,
size_t src_len,
int flags);
size_t align_string(const void *base_ptr, const char *p, int flags);
size_t dos_PutUniCode(char *dst,const char *src, size_t len, bool null_terminate);
int rpcstr_push_talloc(TALLOC_CTX *ctx, smb_ucs2_t **dest, const char *src);

View File

@ -494,17 +494,6 @@ size_t pull_string_talloc(TALLOC_CTX *ctx,
flags);
}
size_t align_string(const void *base_ptr, const char *p, int flags)
{
if (!(flags & STR_ASCII) && \
((flags & STR_UNICODE || \
(SVAL(base_ptr, smb_flg2) & FLAGS2_UNICODE_STRINGS)))) {
return ucs2_align(base_ptr, p, flags);
}
return 0;
}
/*******************************************************************
Write a string in (little-endian) unicode format. src is in
the current DOS codepage. len is the length in bytes of the