s4:ntvfs: fix O3 error unused result of write error in nbench_log()
authorMichael Adam <obnox@samba.org>
Tue, 5 Apr 2016 10:36:57 +0000 (12:36 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 12 May 2016 22:16:15 +0000 (00:16 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source4/ntvfs/nbench/vfs_nbench.c

index e6f725a79086be4d764e9aab2603b5b8f9c885f6..c3e0a4257cf1456a1874e541c328515e4348e607 100644 (file)
@@ -26,6 +26,7 @@
 #include "includes.h"
 #include "ntvfs/ntvfs.h"
 #include "system/filesys.h"
+#include "lib/util/sys_rw.h"
 
 NTSTATUS ntvfs_nbench_init(void);
 
@@ -56,7 +57,7 @@ static void nbench_log(struct ntvfs_request *req,
                return;
        }
 
-       write(nprivates->log_fd, s, strlen(s));
+       sys_write_v(nprivates->log_fd, s, strlen(s));
        free(s);
 }