[libc][Obvious] Fix incorrect RPC opcode for clearerr

Summary:
This was mistakenly using the opcode for `ferror` which wasn't noticed
because tests using this weren't yet activated. This patch fixes this
mistake.
This commit is contained in:
Joseph Huber 2023-09-20 11:52:40 -05:00
parent ebed4692f8
commit 3641d18557

View File

@ -14,7 +14,7 @@
namespace __llvm_libc {
LLVM_LIBC_FUNCTION(void, clearerr, (::FILE * stream)) {
rpc::Client::Port port = rpc::client.open<RPC_FERROR>();
rpc::Client::Port port = rpc::client.open<RPC_CLEARERR>();
port.send_and_recv(
[=](rpc::Buffer *buffer) { buffer->data[0] = file::from_stream(stream); },
[&](rpc::Buffer *) {});