You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
693 B

  1. --- a/cli/commands.h
  2. +++ b/cli/commands.h
  3. @@ -17,7 +17,7 @@
  4. #include "cli_version.h"
  5. -char some_msg[4096];
  6. +static char some_msg[4096];
  7. #define INSTRUCTION(format,args...) {snprintf(some_msg,4095,format,##args);printf("\n %s",some_msg);}
  8. #define ERROR(function,format,args...) {snprintf(some_msg,4095,format,##args);fprintf(stderr,"%s: %s\n",function,some_msg);}
  9. --- a/src/log.h
  10. +++ b/src/log.h
  11. @@ -36,7 +36,7 @@ extern uint8_t np2_sr_verbose_level;
  12. /**
  13. * @brief netopeer2 flag whether to print messages to stderr (only if not daemon).
  14. */
  15. -uint8_t np2_stderr_log;
  16. +extern uint8_t np2_stderr_log;
  17. /**
  18. * @brief internal printing function, follows the levels from libnetconf2