diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-03 20:01:07 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-03 20:01:07 +0000 |
commit | e718ce9c4a3598483e38b8c32bdf2924593edc1e (patch) | |
tree | 0e6823272c9c2b1db13db1ea0e57514f4666578f /source/rpc_parse | |
parent | a80ea2eb47d298095eb6e5b0455309daa3a631cb (diff) | |
download | samba-e718ce9c4a3598483e38b8c32bdf2924593edc1e.tar.gz samba-e718ce9c4a3598483e38b8c32bdf2924593edc1e.tar.xz samba-e718ce9c4a3598483e38b8c32bdf2924593edc1e.zip |
had to move unistr2_dup(), unistr2_free() and unistr2_copy() into
util_unistr.c in order to get bin/testparm to compile.
Diffstat (limited to 'source/rpc_parse')
-rw-r--r-- | source/rpc_parse/parse_misc.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c index 471cb59e1c5..925adeca128 100644 --- a/source/rpc_parse/parse_misc.c +++ b/source/rpc_parse/parse_misc.c @@ -745,40 +745,6 @@ BOOL make_buf_unistr2(UNISTR2 *str, uint32 *ptr, char *buf) } /******************************************************************* -copies a UNISTR2 structure. -********************************************************************/ -BOOL copy_unistr2(UNISTR2 *str, const UNISTR2 *from) -{ - /* set up string lengths. add one if string is not null-terminated */ - str->uni_max_len = from->uni_max_len; - str->undoc = from->undoc; - str->uni_str_len = from->uni_str_len; - - /* copy the string */ - memcpy(str->buffer, from->buffer, sizeof(from->buffer)); - - return True; -} - -/******************************************************************* -duplicates a UNISTR2 structure. -********************************************************************/ -UNISTR2 *unistr2_dup(const UNISTR2 *name) -{ - UNISTR2 *copy = (UNISTR2*)malloc(sizeof(*copy)); - copy_unistr2(copy, name); - return copy; -} - -/******************************************************************* -frees a UNISTR2 structure. -********************************************************************/ -void unistr2_free(UNISTR2 *name) -{ - free(name); -} - -/******************************************************************* creates a STRING2 structure. ********************************************************************/ BOOL make_string2(STRING2 *str, char *buf, int len) |