From b00e4794c073855ab40697e9ec648c6a67f013e9 Mon Sep 17 00:00:00 2001 From: suter Date: Tue, 18 Sep 2012 21:41:07 +0200 Subject: [PATCH] Doesn't see why MSG_get_host_number should be deprecated. --- include/msg/msg.h | 2 +- src/msg/msg_host.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/msg/msg.h b/include/msg/msg.h index fdfda0f8e7..d11cec3faa 100644 --- a/include/msg/msg.h +++ b/include/msg/msg.h @@ -112,6 +112,7 @@ XBT_PUBLIC(void) MSG_load_platform_script(const char *script_file); XBT_PUBLIC(msg_host_t) MSG_get_host_by_name(const char *name); XBT_PUBLIC(xbt_dynar_t) MSG_hosts_as_dynar(void); +XBT_PUBLIC(int) MSG_get_host_number(void); /************************** Process handling *********************************/ XBT_PUBLIC(msg_process_t) MSG_process_create(const char *name, @@ -283,7 +284,6 @@ typedef msg_error_t MSG_error_t; #define MSG_global_init_args(argc, argv) MSG_init(argc,argv) /* these are the functions which are deprecated. Do not use them, they may get removed in future releases */ -XBT_PUBLIC(int) MSG_get_host_number(void); XBT_PUBLIC(msg_host_t *) MSG_get_host_table(void); #define MSG_TIMEOUT_FAILURE MSG_TIMEOUT diff --git a/src/msg/msg_host.c b/src/msg/msg_host.c index 08269984af..73eb35a95e 100644 --- a/src/msg/msg_host.c +++ b/src/msg/msg_host.c @@ -131,12 +131,12 @@ void __MSG_host_destroy(msg_host_t host) { free(host); } -#ifdef MSG_USE_DEPRECATED int MSG_get_host_number(void) { return xbt_lib_length(host_lib); } +#ifdef MSG_USE_DEPRECATED msg_host_t *MSG_get_host_table(void) { void **array; -- 2.20.1