s4-ntvfs: Cast getpid() result to unsigned int for GNU/Solaris build
authorAndrew Bartlett <abartlet@samba.org>
Thu, 14 Mar 2013 09:18:46 +0000 (20:18 +1100)
committerJeremy Allison <jra@samba.org>
Fri, 15 Mar 2013 17:38:36 +0000 (10:38 -0700)
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/ntvfs/nbench/vfs_nbench.c

index 74a9e43b6a634301bb802203d0ffe43dd9067828..42a3f369660872330fb1f83ad369ac03b73e6048 100644 (file)
@@ -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);