Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Wed Nov 27 10:02:22 2019 +0000
Parent:
107:2508886a2a6a
Commit message:
Fix conflicting declarations of main() (#197)

Update the main() to be compatible with the declaration from
platform/mbed_toolchain.h that adds the MBED_USED attribute.
Without the attribute the main() symbol is not emitted with the
GCC toolchain using "-Wl,--wrap,main" and "-flto" flags.
.
Commit copied from https://github.com/ARMmbed/nanostack-border-router

Changed in this revision

source/border_router_main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/source/border_router_main.cpp	Tue Oct 29 15:02:22 2019 +0000
+++ b/source/border_router_main.cpp	Wed Nov 27 10:02:22 2019 +0000
@@ -227,7 +227,7 @@
  * \brief The entry point for this application.
  * Sets up the application and starts the border router module.
  */
-int main(int argc, char **argv)
+int main()
 {
     mbed_trace_init(); // set up the tracing library
     mbed_trace_print_function_set(trace_printer);