diff options
author | Michael Adam <obnox@samba.org> | 2016-04-05 18:16:46 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-05-13 00:16:16 +0200 |
commit | f7256914d060d8816fd1eba93e93c0098ac3ff31 (patch) | |
tree | d886d752fb5eb243b877ef0a3d83312189ea5cf8 /source4/torture/basic | |
parent | 99182346a37bd108bf6177d77c994b4ac8756ccd (diff) | |
download | samba-f7256914d060d8816fd1eba93e93c0098ac3ff31.tar.gz |
s4:torture:basic: fix O3 error unused result of write
in test_utable
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source4/torture/basic')
-rw-r--r-- | source4/torture/basic/utable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/basic/utable.c b/source4/torture/basic/utable.c index 0b4569235d9..da2fe2e0b37 100644 --- a/source4/torture/basic/utable.c +++ b/source4/torture/basic/utable.c @@ -24,6 +24,7 @@ #include "torture/util.h" #include "param/param.h" #include "torture/basic/proto.h" +#include "lib/util/sys_rw.h" bool torture_utable(struct torture_context *tctx, struct smbcli_state *cli) @@ -96,7 +97,7 @@ bool torture_utable(struct torture_context *tctx, torture_assert(tctx, fd != -1, talloc_asprintf(tctx, "Failed to create valid.dat - %s", strerror(errno))); - write(fd, valid, 0x10000); + sys_write_v(fd, valid, 0x10000); close(fd); torture_comment(tctx, "wrote valid.dat\n"); |