]> git.meshlink.io Git - meshlink/commitdiff
Fix compiling with GCC 10.
authorGuus Sliepen <guus@meshlink.io>
Mon, 3 Feb 2020 15:10:26 +0000 (16:10 +0100)
committerGuus Sliepen <guus@meshlink.io>
Mon, 3 Feb 2020 15:10:26 +0000 (16:10 +0100)
test/blackbox/common/containers.c
test/blackbox/run_blackbox_tests/test_cases_rec_cb.c

index c11ca430ec7ca745bdc8c9f411f38f9e83fd936f..4f3f881a23cdedaf7f09aa1463f4f0e38e3fb17f 100644 (file)
@@ -30,7 +30,7 @@
 #include "common_handlers.h"
 
 char *lxc_path = NULL;
-char *choose_arch;
+extern char *choose_arch;
 static char container_ips[10][100];
 
 /* Return the handle to an existing container after finding it by container name */
index 044234b3acb0bfdc06aed36ee8aa9d6f1ed271ec..e659ead8b2d0c01c2278199934cf134d5882ce46 100644 (file)
@@ -64,7 +64,7 @@ static black_box_state_t test_case_set_rec_cb_03_state = {
 static bool received;
 
 /* mutex for the common variable */
-pthread_mutex_t lock;
+static pthread_mutex_t lock;
 
 /* receive callback function */
 static void rec_cb(meshlink_handle_t *mesh, meshlink_node_t *source, const void *data, size_t len) {