diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-01 20:23:00 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-01 20:23:00 +0000 |
commit | 3da727fad649c8c477fa6a2f02e6230780abe94f (patch) | |
tree | e300a0db7b8c3c947d2f151fb8709df18f3bbde5 /src/testbed/testbed_api_testbed.c | |
parent | a7384ba9634781fa115a93645d255e525614a86e (diff) | |
download | gnunet-3da727fad649c8c477fa6a2f02e6230780abe94f.tar.gz gnunet-3da727fad649c8c477fa6a2f02e6230780abe94f.zip |
- doc & indent
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index dd6822a41..6581fffe6 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -973,10 +973,10 @@ host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *host, | |||
973 | if (0 < rc->num_hosts) | 973 | if (0 < rc->num_hosts) |
974 | { | 974 | { |
975 | old_hosts = rc->hosts; | 975 | old_hosts = rc->hosts; |
976 | rc->hosts = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Host *) | 976 | rc->hosts = |
977 | * rc->num_hosts); | 977 | GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Host *) * rc->num_hosts); |
978 | memcpy (rc->hosts, &old_hosts[1], (sizeof (struct GNUNET_TESTBED_Host *) | 978 | memcpy (rc->hosts, &old_hosts[1], |
979 | * rc->num_hosts)); | 979 | (sizeof (struct GNUNET_TESTBED_Host *) * rc->num_hosts)); |
980 | GNUNET_free (old_hosts); | 980 | GNUNET_free (old_hosts); |
981 | } | 981 | } |
982 | else | 982 | else |