summaryrefslogtreecommitdiffstats
path: root/source/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
commit0a8992e224b7a3d90d45b13d73fa8a6f155efa79 (patch)
tree29b31abc9c58170407b82a52bd9e12e7ac43e95f /source/libsmb/clientgen.c
parentdb60c0c26242be0370e6459fe6f1634c97b61176 (diff)
downloadsamba-0a8992e224b7a3d90d45b13d73fa8a6f155efa79.tar.gz
samba-0a8992e224b7a3d90d45b13d73fa8a6f155efa79.tar.xz
samba-0a8992e224b7a3d90d45b13d73fa8a6f155efa79.zip
- neater setting of bcc
- converted cli_rename and cli_unlink
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r--source/libsmb/clientgen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index d7649074db5..c25e71ff3d5 100644
--- a/source/libsmb/clientgen.c
+++ b/source/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)));
+}
/****************************************************************************