Author: vlendec
Date: 2007-08-14 06:18:55 +0000 (Tue, 14 Aug 2007)
New Revision: 24392

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24392

Log:
Minor simplifications
Modified:
   branches/SAMBA_3_2/source/smbd/reply.c


Changeset:
Modified: branches/SAMBA_3_2/source/smbd/reply.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/reply.c      2007-08-14 05:58:13 UTC (rev 
24391)
+++ branches/SAMBA_3_2/source/smbd/reply.c      2007-08-14 06:18:55 UTC (rev 
24392)
@@ -2459,9 +2459,7 @@
                DATA_BLOB header_blob;
 
                _smb_setlen(header,nread);
-               header_blob.data = (uint8 *)header;
-               header_blob.length = 4;
-               header_blob.free = NULL;
+               header_blob = data_blob_const(header, 4);
 
                if ( SMB_VFS_SENDFILE( smbd_server_fd(), fsp, fsp->fh->fd,
                                &header_blob, startpos, nread) == -1) {
@@ -2594,7 +2592,7 @@
        flush_write_cache(fsp, READRAW_FLUSH);
 
        startpos = IVAL_TO_SMB_OFF_T(req->inbuf,smb_vwv1);
-       if(CVAL(req->inbuf,smb_wct) == 10) {
+       if(req->wct == 10) {
                /*
                 * This is a large offset (64 bit) read.
                 */

Reply via email to