summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-03-15 09:59:31 +1100
committerJeremy Allison <jra@samba.org>2013-03-15 10:38:58 -0700
commit1ccfaa413a887dd573dc03c78fcc621e629d9582 (patch)
tree2c57e21bc3b99fdf5045ca2cd22ea702e362a858
parent174a99f4864745cd995e5983cb95b8c7091d0725 (diff)
downloadsamba-1ccfaa413a887dd573dc03c78fcc621e629d9582.tar.gz
samba-1ccfaa413a887dd573dc03c78fcc621e629d9582.tar.bz2
samba-1ccfaa413a887dd573dc03c78fcc621e629d9582.zip
vfs_smb_traffic_analyzer: Cast mode_t to unsigned int for GNU/Solaris build
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c
index 9151bfbb0f..92a176265b 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.c
+++ b/source3/modules/vfs_smb_traffic_analyzer.c
@@ -518,7 +518,7 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
tm, seconds, handle, username, vfs_id_open,
3, ((struct open_data *) data)->filename,
talloc_asprintf( talloc_tos(), "%u",
- ((struct open_data *) data)->mode),
+ (unsigned int)((struct open_data *) data)->mode),
talloc_asprintf( talloc_tos(), "%u",
((struct open_data *) data)->result));
break;
@@ -534,7 +534,7 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
tm, seconds, handle, username, vfs_id_mkdir, \
3, ((struct mkdir_data *) data)->path, \
talloc_asprintf( talloc_tos(), "%u", \
- ((struct mkdir_data *) data)->mode), \
+ (unsigned int)((struct mkdir_data *) data)->mode), \
talloc_asprintf( talloc_tos(), "%u", \
((struct mkdir_data *) data)->result ));
break;