[Glacier] Convert ErrorCode into an Enum.

This commit is contained in:
Drew Galbraith 2023-11-02 21:55:12 -07:00
parent bcd9cf09bc
commit e66706d381
14 changed files with 77 additions and 66 deletions

View file

@ -23,9 +23,9 @@ void EndpointServer::ServerThread() {
uint64_t message_size = kBufferSize;
uint64_t reply_port_cap = 0;
uint64_t num_caps = 0;
glcr::ErrorCode err =
glcr::ErrorCode err = static_cast<glcr::ErrorCode>(
ZEndpointRecv(endpoint_cap_, &message_size, recieve_buffer_, &num_caps,
nullptr, &reply_port_cap);
nullptr, &reply_port_cap));
if (err != glcr::OK) {
dbgln("Error in receive: %x", err);
continue;