summaryrefslogtreecommitdiff
path: root/source3/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-03-24 17:26:08 +0000
committerLuke Leighton <lkcl@samba.org>1999-03-24 17:26:08 +0000
commitcd7c530f569045a47b51f357759f4cf5089992a0 (patch)
tree7d8ac0e611cef6ddeedd0dc3dc6ccb5e94a9b313 /source3/rpc_parse/parse_misc.c
parent22ab15823fde3926f4fea5538632a2215d30d435 (diff)
downloadsamba-cd7c530f569045a47b51f357759f4cf5089992a0.tar.gz
samba-cd7c530f569045a47b51f357759f4cf5089992a0.tar.bz2
samba-cd7c530f569045a47b51f357759f4cf5089992a0.zip
removed 2 unnecessary args from make_uni_hdr.
(This used to be commit f84dede27e16a5f02ee6d02fe2d16f2661c65470)
Diffstat (limited to 'source3/rpc_parse/parse_misc.c')
-rw-r--r--source3/rpc_parse/parse_misc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index da6ff2c7f6..323d5f65e5 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/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;
}