From e0561f734723672019c1612b202ae2705dadedc9 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Wed, 27 Feb 2013 17:05:47 +0000 Subject: GNUNET_TESTBED_hosts_load_from_loadleveler() function available only when --with-ll is specified --- src/testbed/testbed_api_hosts.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/testbed') diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index d0349c4b3..6cac5eeb6 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c @@ -588,12 +588,18 @@ GNUNET_TESTBED_hosts_load_from_loadleveler (const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_TESTBED_Host ***hosts) { +#ifndef WITH_LL + LOG (GNUNET_ERROR_TYPE_ERROR, + _("The function %s is only available when compiled with (--with-ll)\n"), + __func__); + GNUNET_assert (0); +#else const char *hostfile; char *buf; char *hostname; char **hostnames; char **hostaddrs; - char *hostip; + const char *hostip; struct GNUNET_TESTBED_Host **host_list; ssize_t rsize; uint64_t size; @@ -721,6 +727,7 @@ GNUNET_TESTBED_hosts_load_from_loadleveler (const struct GNUNET_free (hostaddrs[host]); GNUNET_free (hostaddrs); return nhosts; +#endif } -- cgit v1.2.3