svn commit: samba r11721 - in branches/SAMBA_4_0/source: include
libcli/smb2
vlendec at samba.org
vlendec at samba.org
Mon Nov 14 07:06:17 GMT 2005
Author: vlendec
Date: 2005-11-14 07:06:16 +0000 (Mon, 14 Nov 2005)
New Revision: 11721
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11721
Log:
Fix warnings
Modified:
branches/SAMBA_4_0/source/include/structs.h
branches/SAMBA_4_0/source/libcli/smb2/close.c
branches/SAMBA_4_0/source/libcli/smb2/getinfo.c
branches/SAMBA_4_0/source/libcli/smb2/read.c
branches/SAMBA_4_0/source/libcli/smb2/request.c
branches/SAMBA_4_0/source/libcli/smb2/write.c
Changeset:
Modified: branches/SAMBA_4_0/source/include/structs.h
===================================================================
--- branches/SAMBA_4_0/source/include/structs.h 2005-11-14 06:42:49 UTC (rev 11720)
+++ branches/SAMBA_4_0/source/include/structs.h 2005-11-14 07:06:16 UTC (rev 11721)
@@ -344,3 +344,8 @@
struct smb2_create;
struct smb2_close;
struct smb2_getinfo;
+struct smb2_read;
+struct smb2_write;
+struct smb2_handle;
+
+union smb2_fileinfo;
Modified: branches/SAMBA_4_0/source/libcli/smb2/close.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb2/close.c 2005-11-14 06:42:49 UTC (rev 11720)
+++ branches/SAMBA_4_0/source/libcli/smb2/close.c 2005-11-14 07:06:16 UTC (rev 11721)
@@ -38,7 +38,7 @@
SSVAL(req->out.body, 0x00, io->in.buffer_code);
SSVAL(req->out.body, 0x02, io->in.flags);
SIVAL(req->out.body, 0x04, io->in._pad);
- smb2_put_handle(req->out.body+0x08, io->in.handle);
+ smb2_put_handle(req->out.body+0x08, &io->in.handle);
smb2_transport_send(req);
Modified: branches/SAMBA_4_0/source/libcli/smb2/getinfo.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb2/getinfo.c 2005-11-14 06:42:49 UTC (rev 11720)
+++ branches/SAMBA_4_0/source/libcli/smb2/getinfo.c 2005-11-14 07:06:16 UTC (rev 11721)
@@ -42,7 +42,7 @@
SIVAL(req->out.body, 0x0C, io->in.flags);
SIVAL(req->out.body, 0x10, io->in.unknown3);
SIVAL(req->out.body, 0x14, io->in.unknown4);
- smb2_put_handle(req->out.body+0x18, io->in.handle);
+ smb2_put_handle(req->out.body+0x18, &io->in.handle);
smb2_transport_send(req);
Modified: branches/SAMBA_4_0/source/libcli/smb2/read.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb2/read.c 2005-11-14 06:42:49 UTC (rev 11720)
+++ branches/SAMBA_4_0/source/libcli/smb2/read.c 2005-11-14 07:06:16 UTC (rev 11721)
@@ -39,7 +39,7 @@
SSVAL(req->out.body, 0x02, 0);
SIVAL(req->out.body, 0x04, io->in.length);
SBVAL(req->out.body, 0x08, io->in.offset);
- smb2_put_handle(req->out.body+0x10, io->in.handle);
+ smb2_put_handle(req->out.body+0x10, &io->in.handle);
memcpy(req->out.body+0x20, io->in._pad, 17);
smb2_transport_send(req);
Modified: branches/SAMBA_4_0/source/libcli/smb2/request.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb2/request.c 2005-11-14 06:42:49 UTC (rev 11720)
+++ branches/SAMBA_4_0/source/libcli/smb2/request.c 2005-11-14 07:06:16 UTC (rev 11721)
@@ -267,9 +267,9 @@
/*
put a file handle into a buffer
*/
-void smb2_put_handle(uint8_t *data, struct smb2_handle h)
+void smb2_put_handle(uint8_t *data, struct smb2_handle *h)
{
- SBVAL(data, 0, h.data[0]);
- SBVAL(data, 8, h.data[1]);
+ SBVAL(data, 0, h->data[0]);
+ SBVAL(data, 8, h->data[1]);
}
Modified: branches/SAMBA_4_0/source/libcli/smb2/write.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb2/write.c 2005-11-14 06:42:49 UTC (rev 11720)
+++ branches/SAMBA_4_0/source/libcli/smb2/write.c 2005-11-14 07:06:16 UTC (rev 11721)
@@ -39,7 +39,7 @@
SSVAL(req->out.body, 0x02, req->out.body+0x30 - req->out.hdr);
SIVAL(req->out.body, 0x04, io->in.data.length);
SBVAL(req->out.body, 0x08, io->in.offset);
- smb2_put_handle(req->out.body+0x10, io->in.handle);
+ smb2_put_handle(req->out.body+0x10, &io->in.handle);
memcpy(req->out.body+0x20, io->in._pad, 0x10);
memcpy(req->out.body+0x30, io->in.data.data, io->in.data.length);
More information about the samba-cvs
mailing list