summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-05-14 15:44:03 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-05-14 15:44:03 +0000
commitb1ae539d58a10b6cb037cf0ddaf3fccb947e01e5 (patch)
tree53906d662f83227ec33ff8568c6fe98c2724bb68 /src
parent222eabd3a982536bc7f550327bd3f90903dada38 (diff)
- compile warning fixes
Diffstat (limited to 'src')
-rw-r--r--src/testbed/gnunet_testbed_mpi_spawn.c6
-rw-r--r--src/testbed/testbed_api_hosts.c3
2 files changed, 2 insertions, 7 deletions
diff --git a/src/testbed/gnunet_testbed_mpi_spawn.c b/src/testbed/gnunet_testbed_mpi_spawn.c
index 01cbd6576..736cd0cca 100644
--- a/src/testbed/gnunet_testbed_mpi_spawn.c
+++ b/src/testbed/gnunet_testbed_mpi_spawn.c
@@ -31,11 +31,6 @@ static struct GNUNET_OS_Process *child;
static char **argv2;
/**
- * All our IP addresses
- */
-static char **our_addrs;
-
-/**
* Pipe used to communicate shutdown via signal.
*/
static struct GNUNET_DISK_PipeHandle *sigpipe;
@@ -196,7 +191,6 @@ run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
struct GNUNET_TESTBED_Host **hosts;
const struct GNUNET_CONFIGURATION_Handle *null_cfg;
- const char *host_ip;
char *tmpdir;
char *hostname;
size_t hostname_len;
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c
index f93a140c5..0888a9032 100644
--- a/src/testbed/testbed_api_hosts.c
+++ b/src/testbed/testbed_api_hosts.c
@@ -689,7 +689,8 @@ GNUNET_TESTBED_hosts_load_from_loadleveler (const struct
return 0;
if (NULL == hosts)
goto cleanup;
- qsort (hostnames, nhosts, sizeof (hostnames[0]), &strcmp);
+ qsort (hostnames, nhosts, sizeof (hostnames[0]),
+ (int (*)(const void *, const void *))&strcmp);
host_list = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Host *) * nhosts);
for (host = 0; host < nhosts; host++)
host_list[host] = GNUNET_TESTBED_host_create (hostnames[host], NULL, cfg, 0);