diff options
author | Luke Leighton <lkcl@samba.org> | 1999-03-24 17:26:08 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-03-24 17:26:08 +0000 |
commit | f84dede27e16a5f02ee6d02fe2d16f2661c65470 (patch) | |
tree | af548bb7586e8e58e165b4b993f833ce4017a2df /source/rpc_parse/parse_misc.c | |
parent | 6d03f61d2536630968007958345cf44a42b03584 (diff) | |
download | samba-f84dede27e16a5f02ee6d02fe2d16f2661c65470.tar.gz samba-f84dede27e16a5f02ee6d02fe2d16f2661c65470.tar.xz samba-f84dede27e16a5f02ee6d02fe2d16f2661c65470.zip |
removed 2 unnecessary args from make_uni_hdr.
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r-- | source/rpc_parse/parse_misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c index da6ff2c7f61..323d5f65e5c 100644 --- a/source/rpc_parse/parse_misc.c +++ b/source/rpc_parse/parse_misc.c @@ -238,11 +238,11 @@ void smb_io_strhdr2(char *desc, STRHDR2 *hdr, prs_struct *ps, int depth) /******************************************************************* creates a UNIHDR structure. ********************************************************************/ -void make_uni_hdr(UNIHDR *hdr, int max_len, int len, uint32 buffer) +void make_uni_hdr(UNIHDR *hdr, int len) { hdr->uni_str_len = 2 * len; - hdr->uni_max_len = 2 * max_len; - hdr->buffer = buffer; + hdr->uni_max_len = 2 * len; + hdr->buffer = len != 0 ? 1 : 0; } /******************************************************************* @@ -334,9 +334,9 @@ void smb_io_hdrbuf(char *desc, BUFHDR *hdr, prs_struct *ps, int depth) /******************************************************************* creates a UNIHDR2 structure. ********************************************************************/ -void make_uni_hdr2(UNIHDR2 *hdr, int max_len, int len, uint16 terminate) +void make_uni_hdr2(UNIHDR2 *hdr, int len) { - make_uni_hdr(&(hdr->unihdr), max_len, len, terminate); + make_uni_hdr(&(hdr->unihdr), len); hdr->buffer = len > 0 ? 1 : 0; } |