git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4:ntvfs: fix O3 error unused result of write error in nbench_log()
[sfrench/samba-autobuild/.git]
/
source4
/
ntvfs
/
nbench
/
vfs_nbench.c
diff --git
a/source4/ntvfs/nbench/vfs_nbench.c
b/source4/ntvfs/nbench/vfs_nbench.c
index e6f725a79086be4d764e9aab2603b5b8f9c885f6..c3e0a4257cf1456a1874e541c328515e4348e607 100644
(file)
--- 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);
}