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

Commit 9995f07b authored by Ryan Prichard's avatar Ryan Prichard Committed by Gerrit Code Review
Browse files

Merge "Declare main in global NS, without extern "C"" into main

parents 1d8ecc05 9e15e4a5
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -20,12 +20,11 @@
#include <android/binder_manager.h>
#include <android/binder_process.h>

namespace android::hardware::automotive::can {

using namespace std::string_literals;
using namespace android;
using ::aidl::android::hardware::automotive::can::CanController;

extern "C" int main() {
int main() {
    base::SetDefaultTag("CanController");
    base::SetMinimumLogSeverity(base::VERBOSE);

@@ -40,4 +39,3 @@ extern "C" int main() {
    LOG(FATAL) << "CanController exited unexpectedly!";
    return EXIT_FAILURE;
}
}  // namespace android::hardware::automotive::can
+5 −3
Original line number Diff line number Diff line
@@ -98,7 +98,11 @@ static bool configuratorStart(const std::string& filepath) {
    return true;
}

extern "C" int main(int argc, char* argv[]) {
}  // namespace android::hardware::automotive::can

int main(int argc, char* argv[]) {
    using namespace android::hardware::automotive::can;

    std::string configFilepath = static_cast<std::string>(kDefaultConfigPath);

    // allow for CLI specification of a config file.
@@ -114,5 +118,3 @@ extern "C" int main(int argc, char* argv[]) {
    }
    return 0;
}

}  // namespace android::hardware::automotive::can
+2 −4
Original line number Diff line number Diff line
@@ -20,12 +20,11 @@
#include <android/binder_manager.h>
#include <android/binder_process.h>

namespace android::hardware::macsec {

using namespace std::string_literals;
using namespace android;
using ::aidl::android::hardware::macsec::MacsecPskPlugin;

extern "C" int main() {
int main() {
    base::SetDefaultTag("MacsecPskPlugin");
    base::SetMinimumLogSeverity(base::VERBOSE);

@@ -40,4 +39,3 @@ extern "C" int main() {
    LOG(FATAL) << "MacsecPskPlugin exited unexpectedly!";
    return EXIT_FAILURE;
}
}  // namespace android::hardware::macsec