summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-09-26 09:08:17 +0200
committerJeremy Allison <jra@samba.org>2012-10-17 14:37:58 +0200
commitb557f34c80c9326d9aa887366501366bf3956ce1 (patch)
tree2865b1e03800f6094f2dd1d7bfe606f9e97d5bbc /source3/smbd
parent678cc4403f78d36f277940add7b7b4294e13100e (diff)
downloadsamba-b557f34c80c9326d9aa887366501366bf3956ce1.tar.gz
samba-b557f34c80c9326d9aa887366501366bf3956ce1.tar.bz2
samba-b557f34c80c9326d9aa887366501366bf3956ce1.zip
s3:smbd: fix brace placements in validate_my_share_entries() for readability
according to coding guidelines Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Oct 17 14:37:58 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index efabe4a480..7eb9f321f8 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -1012,7 +1012,8 @@ static void validate_my_share_entries(struct smbd_server_connection *sconn,
}
if (is_deferred_open_entry(share_entry) &&
- !open_was_deferred(sconn, share_entry->op_mid)) {
+ !open_was_deferred(sconn, share_entry->op_mid))
+ {
char *str = talloc_asprintf(talloc_tos(),
"Got a deferred entry without a request: "
"PANIC: %s\n",
@@ -1038,7 +1039,8 @@ static void validate_my_share_entries(struct smbd_server_connection *sconn,
}
if ((share_entry->op_type == NO_OPLOCK) &&
- (fsp->oplock_type == FAKE_LEVEL_II_OPLOCK)) {
+ (fsp->oplock_type == FAKE_LEVEL_II_OPLOCK))
+ {
/* Someone has already written to it, but I haven't yet
* noticed */
return;