fdopen() for writing and reading.
Since that's what we're doing. Doesn't seem like this affected anything, though. Change-Id: I0fa915fe2a311d4b3e6e72a9a9a19f52018258c3
This commit is contained in:
parent
fb2291421b
commit
2fc53c1faa
|
@ -288,7 +288,7 @@ static int remote_bitbang_init(void)
|
||||||
if (remote_bitbang_fd < 0)
|
if (remote_bitbang_fd < 0)
|
||||||
return remote_bitbang_fd;
|
return remote_bitbang_fd;
|
||||||
|
|
||||||
remote_bitbang_file = fdopen(remote_bitbang_fd, "w");
|
remote_bitbang_file = fdopen(remote_bitbang_fd, "w+");
|
||||||
if (remote_bitbang_file == NULL) {
|
if (remote_bitbang_file == NULL) {
|
||||||
LOG_ERROR("fdopen: failed to open write stream");
|
LOG_ERROR("fdopen: failed to open write stream");
|
||||||
close(remote_bitbang_fd);
|
close(remote_bitbang_fd);
|
||||||
|
|
Loading…
Reference in New Issue