diff options
author | Michael Adam <obnox@samba.org> | 2016-04-05 12:36:57 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-05-13 00:16:15 +0200 |
commit | 2a2d990e3ac241c4d0d8986e203192ddf78d3566 (patch) | |
tree | ccf5fe4acddbbd9a9735fd51cccb061b2cd5945d /source4 | |
parent | 93b1dac1ca3db596b4bac9ba7b5626f5cdd6b658 (diff) | |
download | samba-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')
-rw-r--r-- | source4/ntvfs/nbench/vfs_nbench.c | 3 |
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); } |