summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-21 17:32:07 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-21 17:37:41 +0100
commitec4936077878e7bcbf1addfdc69a9f737e9c98f3 (patch)
treeea79db50d38c676a759f3adfc03cff871b28fefa /source4
parent5dc478e390ce18c6e40ec398977854f8a7d0d13d (diff)
downloadsamba-ec4936077878e7bcbf1addfdc69a9f737e9c98f3.tar.gz
samba-ec4936077878e7bcbf1addfdc69a9f737e9c98f3.tar.bz2
samba-ec4936077878e7bcbf1addfdc69a9f737e9c98f3.zip
s4:torture/smb2/notify - Rename nested "fname" variable to prevent warnings
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/notify.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c
index 60a646869f..d1fe5985b1 100644
--- a/source4/torture/smb2/notify.c
+++ b/source4/torture/smb2/notify.c
@@ -327,7 +327,7 @@ static bool torture_smb2_notify_dir(struct torture_context *torture,
"testing buffered notify on create of %d files\n", count);
for (i=0;i<count;i++) {
struct smb2_handle h12;
- char *fname = talloc_asprintf(torture, BASEDIR "\\test%d.txt",
+ char *fname2 = talloc_asprintf(torture, BASEDIR "\\test%d.txt",
i);
ZERO_STRUCT(io.smb2);
@@ -343,7 +343,7 @@ static bool torture_smb2_notify_dir(struct torture_context *torture,
io.smb2.in.create_disposition = NTCREATEX_DISP_CREATE;
io.smb2.in.impersonation_level = SMB2_IMPERSONATION_ANONYMOUS;
io.smb2.in.security_flags = 0;
- io.smb2.in.fname = fname;
+ io.smb2.in.fname = fname2;
status = smb2_create(tree1, torture, &(io.smb2));
if (!NT_STATUS_EQUAL(status, NT_STATUS_OK)) {
@@ -353,7 +353,7 @@ static bool torture_smb2_notify_dir(struct torture_context *torture,
goto done;
}
h12 = io.smb2.out.file.handle;
- talloc_free(fname);
+ talloc_free(fname2);
smb2_util_close(tree1, h12);
}
@@ -404,11 +404,11 @@ static bool torture_smb2_notify_dir(struct torture_context *torture,
CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
for (i=1;i<count;i++) {
- char *fname = talloc_asprintf(torture,
+ char *fname2 = talloc_asprintf(torture,
BASEDIR "\\test%d.txt", i);
- status = smb2_util_unlink(tree2, fname);
+ status = smb2_util_unlink(tree2, fname2);
CHECK_STATUS(status, NT_STATUS_OK);
- talloc_free(fname);
+ talloc_free(fname2);
}
/* receive the 3rd notify */