1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

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>
This commit is contained in:
Michael Adam 2016-04-05 18:16:46 +02:00
parent 99182346a3
commit f7256914d0

View File

@ -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");