summaryrefslogtreecommitdiffstats
path: root/source/smbd/blocking.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>1998-09-26 00:41:20 +0000
committerRichard Sharpe <sharpe@samba.org>1998-09-26 00:41:20 +0000
commitb46f1024c939ee9ecb8deb9c844acbd4b5f109c6 (patch)
treec41c9fa1735e296e75123fbbaa610d7b6fbe755c /source/smbd/blocking.c
parente8be306f23963ac00b1a383ebe0cc1421529fb02 (diff)
downloadsamba-b46f1024c939ee9ecb8deb9c844acbd4b5f109c6.tar.gz
samba-b46f1024c939ee9ecb8deb9c844acbd4b5f109c6.tar.xz
samba-b46f1024c939ee9ecb8deb9c844acbd4b5f109c6.zip
Small update to clitar.c to omit warnings about servers not
letting us change the date unless tar_real_noisy is True. Also updated a few places where variables are declared but not set.
Diffstat (limited to 'source/smbd/blocking.c')
-rw-r--r--source/smbd/blocking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/blocking.c b/source/smbd/blocking.c
index 27a51839529..32b6d010a4f 100644
--- a/source/smbd/blocking.c
+++ b/source/smbd/blocking.c
@@ -195,7 +195,7 @@ static void reply_lockingX_error(blocking_lock_record *blr, int eclass, int32 ec
files_struct *fsp = blr->fsp;
connection_struct *conn = conn_find(SVAL(inbuf,smb_tid));
uint16 num_ulocks = SVAL(inbuf,smb_vwv6);
- SMB_OFF_T count, offset;
+ SMB_OFF_T count = (SMB_OFF_T) 0, offset = (SMB_OFF_T) 0;
unsigned char locktype = CVAL(inbuf,smb_vwv3);
BOOL large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES);
char *data;
@@ -329,7 +329,7 @@ static BOOL process_lock(blocking_lock_record *blr)
char *outbuf = OutBuffer;
char *inbuf = blr->inbuf;
int outsize;
- SMB_OFF_T count,offset;
+ SMB_OFF_T count = 0, offset = 0;
int eclass;
uint32 ecode;
connection_struct *conn = conn_find(SVAL(inbuf,smb_tid));
@@ -387,7 +387,7 @@ static BOOL process_lockingX(blocking_lock_record *blr)
connection_struct *conn = conn_find(SVAL(inbuf,smb_tid));
uint16 num_ulocks = SVAL(inbuf,smb_vwv6);
uint16 num_locks = SVAL(inbuf,smb_vwv7);
- SMB_OFF_T count, offset;
+ SMB_OFF_T count = 0, offset = 0;
BOOL large_file_format = (locktype & LOCKING_ANDX_LARGE_FILES);
char *data;
int eclass=0;