summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2016-04-05 12:36:57 +0200
committerMichael Adam <obnox@samba.org>2016-05-13 00:16:15 +0200
commit2a2d990e3ac241c4d0d8986e203192ddf78d3566 (patch)
treeccf5fe4acddbbd9a9735fd51cccb061b2cd5945d /source4/ntvfs
parent93b1dac1ca3db596b4bac9ba7b5626f5cdd6b658 (diff)
downloadsamba-2a2d990e3ac241c4d0d8986e203192ddf78d3566.tar.gz
s4:ntvfs: fix O3 error unused result of write error in nbench_log()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/nbench/vfs_nbench.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/nbench/vfs_nbench.c b/source4/ntvfs/nbench/vfs_nbench.c
index e6f725a7908..c3e0a4257cf 100644
--- a/source4/ntvfs/nbench/vfs_nbench.c
+++ b/source4/ntvfs/nbench/vfs_nbench.c
@@ -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);
}