summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-02-20 12:45:50 +0000
committerAndrew Tridgell <tridge@samba.org>2001-02-20 12:45:50 +0000
commit8acf5e04482cb43734fbb786f8d363ee3bfff652 (patch)
tree3777683d2de87352854953cb0d9fcec91e15e0b7 /source3/libsmb/clientgen.c
parent20b037b84951368cdac7fb65cd77aee0aeae9b37 (diff)
downloadsamba-8acf5e04482cb43734fbb786f8d363ee3bfff652.tar.gz
samba-8acf5e04482cb43734fbb786f8d363ee3bfff652.tar.bz2
samba-8acf5e04482cb43734fbb786f8d363ee3bfff652.zip
- neater setting of bcc
- converted cli_rename and cli_unlink (This used to be commit 0a8992e224b7a3d90d45b13d73fa8a6f155efa79)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index d7649074db..c25e71ff3d 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -127,6 +127,13 @@ void cli_setup_packet(struct cli_state *cli)
}
}
+/****************************************************************************
+setup the bcc length of the packet from a pointer to the end of the data
+****************************************************************************/
+void cli_setup_bcc(struct cli_state *cli, void *p)
+{
+ set_message_bcc(cli->outbuf, PTR_DIFF(p, smb_buf(cli->outbuf)));
+}
/****************************************************************************