From f7e342550d6e25e190be5d1142e2d5a0e11846d2 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 4 Jul 2012 11:04:09 +0200 Subject: [PATCH] Don't define variables in header file. --- src/surf/surf_private.h | 2 +- src/surf/surf_routing.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index 3f24d74fd1..6e87529dd2 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -30,7 +30,7 @@ extern double sg_gtnets_jitter; extern int sg_gtnets_jitter_seed; #endif -xbt_dict_t watched_hosts_lib; +extern xbt_dict_t watched_hosts_lib; extern const char *surf_action_state_names[6]; diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 69f5cc5a01..efbce744f5 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -27,6 +27,8 @@ int SD_HOST_LEVEL; //Simdag level int COORD_HOST_LEVEL=0; //Coordinates level int NS3_HOST_LEVEL; //host node for ns3 +xbt_dict_t watched_hosts_lib; + /** * @ingroup SURF_build_api * @brief A library containing all known links -- 2.20.1