summaryrefslogtreecommitdiff
path: root/source4/ntvfs/nbench
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-03-14 20:18:46 +1100
committerJeremy Allison <jra@samba.org>2013-03-15 10:38:36 -0700
commit21f18d0205bc7aca4166e8436083c16540f95781 (patch)
tree8a878760ca4abb244123cae81fb4f5f9d19d84d7 /source4/ntvfs/nbench
parent7ea026e332192ebba4c634c93fed6e02bfb7f89e (diff)
downloadsamba-21f18d0205bc7aca4166e8436083c16540f95781.tar.gz
samba-21f18d0205bc7aca4166e8436083c16540f95781.tar.bz2
samba-21f18d0205bc7aca4166e8436083c16540f95781.zip
s4-ntvfs: Cast getpid() result to unsigned int for GNU/Solaris build
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/ntvfs/nbench')
-rw-r--r--source4/ntvfs/nbench/vfs_nbench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/nbench/vfs_nbench.c b/source4/ntvfs/nbench/vfs_nbench.c
index 74a9e43b6a..42a3f36966 100644
--- a/source4/ntvfs/nbench/vfs_nbench.c
+++ b/source4/ntvfs/nbench/vfs_nbench.c
@@ -126,7 +126,7 @@ static NTSTATUS nbench_connect(struct ntvfs_module_context *ntvfs,
}
logname = talloc_asprintf(req, "/tmp/nbenchlog%d.%u", ntvfs->depth,
- getpid());
+ (unsigned int)getpid());
NT_STATUS_HAVE_NO_MEMORY(logname);
nprivates->log_fd = open(logname, O_WRONLY|O_CREAT|O_APPEND, 0644);
talloc_free(logname);