summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorHolger Hetterich <hhetter@novell.com>2010-01-21 23:26:54 +0100
committerJim McDonough <jmcd@samba.org>2010-03-16 09:52:09 -0400
commit27f4f51d56e8b8d00729ca1eb0c6b1e1762274ce (patch)
treefafe3da74f5d79022eba47de148479ece2c8dc0b /source3/modules
parentcdd19067284081af01f38a4ed78a9667990677cd (diff)
downloadsamba-27f4f51d56e8b8d00729ca1eb0c6b1e1762274ce.tar.gz
samba-27f4f51d56e8b8d00729ca1eb0c6b1e1762274ce.tar.bz2
samba-27f4f51d56e8b8d00729ca1eb0c6b1e1762274ce.zip
According to the linux kernel coding styleguide, it's better to
align the switch and it's case statements in the same column. This saves us one indentation level.
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c92
1 files changed, 46 insertions, 46 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c
index 150b112ee6..26b7dc64cc 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.c
+++ b/source3/modules/vfs_smb_traffic_analyzer.c
@@ -349,52 +349,52 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
} else if ( strcmp( protocol_version, "V2") == 0) {
switch( vfs_operation ) {
- case vfs_id_mkdir: ;
- str = smb_traffic_analyzer_create_string( tm, \
- seconds, handle, username, 3,\
- ((struct mkdir_data *) data)->path, \
- talloc_asprintf( talloc_tos(), "%u", \
- ((struct mkdir_data *) data)->mode), \
- talloc_asprintf( talloc_tos(), "%u", \
- ((struct mkdir_data *) data)->result ));
- break;
- case vfs_id_rmdir: ;
- str = smb_traffic_analyzer_create_string( tm, \
- seconds, handle, username, 2,\
- ((struct rmdir_data *) data)->path, \
- talloc_asprintf( talloc_tos(), "%u", \
- ((struct rmdir_data *) data)->result ));
- break;
- case vfs_id_rename: ;
- str = smb_traffic_analyzer_create_string( tm, \
- seconds, handle, username, 3,\
- ((struct rename_data *) data)->src, \
- ((struct rename_data *) data)->dst,
- talloc_asprintf(talloc_tos(), "%u", \
- ((struct rename_data *) data)->result));
- break;
- case vfs_id_chdir: ;
- str = smb_traffic_analyzer_create_string( tm, \
- seconds, handle, username, 2,\
- ((struct chdir_data *) data)->path, \
- talloc_asprintf(talloc_tos(), "%u", \
- ((struct chdir_data *) data)->result));
- break;
-
- case vfs_id_write:
- case vfs_id_pwrite:
- case vfs_id_read:
- case vfs_id_pread: ;
- str = smb_traffic_analyzer_create_string( tm, \
- seconds, handle, username, 2,\
- ((struct rw_data *) data)->filename, \
- talloc_asprintf(talloc_tos(), "%u", \
- ((struct rw_data *) data)->len));
- break;
- default:
- DEBUG(1, ("smb_traffic_analyzer: error! "
- "wrong VFS operation id detected!\n"));
- return;
+ case vfs_id_mkdir: ;
+ str = smb_traffic_analyzer_create_string( tm, \
+ seconds, handle, username, 3,\
+ ((struct mkdir_data *) data)->path, \
+ talloc_asprintf( talloc_tos(), "%u", \
+ ((struct mkdir_data *) data)->mode), \
+ talloc_asprintf( talloc_tos(), "%u", \
+ ((struct mkdir_data *) data)->result ));
+ break;
+ case vfs_id_rmdir: ;
+ str = smb_traffic_analyzer_create_string( tm, \
+ seconds, handle, username, 2,\
+ ((struct rmdir_data *) data)->path, \
+ talloc_asprintf( talloc_tos(), "%u", \
+ ((struct rmdir_data *) data)->result ));
+ break;
+ case vfs_id_rename: ;
+ str = smb_traffic_analyzer_create_string( tm, \
+ seconds, handle, username, 3,\
+ ((struct rename_data *) data)->src, \
+ ((struct rename_data *) data)->dst,
+ talloc_asprintf(talloc_tos(), "%u", \
+ ((struct rename_data *) data)->result));
+ break;
+ case vfs_id_chdir: ;
+ str = smb_traffic_analyzer_create_string( tm, \
+ seconds, handle, username, 2,\
+ ((struct chdir_data *) data)->path, \
+ talloc_asprintf(talloc_tos(), "%u", \
+ ((struct chdir_data *) data)->result));
+ break;
+
+ case vfs_id_write:
+ case vfs_id_pwrite:
+ case vfs_id_read:
+ case vfs_id_pread: ;
+ str = smb_traffic_analyzer_create_string( tm, \
+ seconds, handle, username, 2,\
+ ((struct rw_data *) data)->filename, \
+ talloc_asprintf(talloc_tos(), "%u", \
+ ((struct rw_data *) data)->len));
+ break;
+ default:
+ DEBUG(1, ("smb_traffic_analyzer: error! "
+ "wrong VFS operation id detected!\n"));
+ return;
}
} else {