@ 201216.1

200620.1.1 · 21eaa1c4160b868b0c5bbf59da17974429f30055

Fix multiple global symbols definitions.

See the use of extern here:

* https://www.geeksforgeeks.org/understanding-extern-keyword-in-c/

* https://en.wikipedia.org/wiki/External_variable

* https://stackoverflow.com/questions/496448/how-to-correctly-use-the-extern-keyword-in-c

reading declarations

Changes to src/log.c. All files

src/log.c

@@ -4,6 +4,7 @@ #include "log.h" #include "util.h" +pthread_mutex_t print_mtx = PTHREAD_MUTEX_INITIALIZER; static enum log_level log_threshold = LOG_LEVEL_ERR;  void set_log_level(enum log_level threshold) {