Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce45c8ff authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Replaced `-1` with `EXIT_FAILURE` and validated confirmationui service...

Merge "Replaced `-1` with `EXIT_FAILURE` and validated confirmationui service status after registering it with `CHECK_EQ` macro."
parents 0543f064 4092a777
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -31,12 +31,8 @@ int main() {
    const auto instance = std::string(IConfirmationUI::descriptor) + "/default";
    binder_status_t status =
        AServiceManager_addService(confirmationui->asBinder().get(), instance.c_str());

    if (status != STATUS_OK) {
        LOG(FATAL) << "Could not register service for " << instance.c_str() << "(" << status << ")";
        return -1;
    }
    CHECK_EQ(status, STATUS_OK) << "Could not register " << instance;

    ABinderProcess_joinThreadPool();
    return -1;
    return EXIT_FAILURE;
}