diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-12 09:21:24 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-12 09:21:24 +0000 |
commit | 8b083c2faf322cd87e30d7049bac9d8da5a423ed (patch) | |
tree | d54609dd257416b0ece6e8e5cfd9ced4c3548d55 /src/testbed | |
parent | 9a065e97118b882b4fb6f245b060f21aa1f3ee3b (diff) | |
download | gnunet-8b083c2faf322cd87e30d7049bac9d8da5a423ed.tar.gz gnunet-8b083c2faf322cd87e30d7049bac9d8da5a423ed.zip |
fixing scanf failures
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/test_testbed_api_hosts.c | 2 | ||||
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/test_testbed_api_hosts.c b/src/testbed/test_testbed_api_hosts.c index e5b529ad8..12f0b61c7 100644 --- a/src/testbed/test_testbed_api_hosts.c +++ b/src/testbed/test_testbed_api_hosts.c | |||
@@ -102,7 +102,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
102 | &hosts); | 102 | &hosts); |
103 | GNUNET_assert (15 == num_hosts); | 103 | GNUNET_assert (15 == num_hosts); |
104 | GNUNET_assert (NULL != hosts); | 104 | GNUNET_assert (NULL != hosts); |
105 | result = GNUNET_YES; | 105 | status = GNUNET_YES; |
106 | shutdown_id = | 106 | shutdown_id = |
107 | GNUNET_SCHEDULER_add_delayed (TIME_REL_SECS (2), &do_shutdown, NULL); | 107 | GNUNET_SCHEDULER_add_delayed (TIME_REL_SECS (2), &do_shutdown, NULL); |
108 | } | 108 | } |
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index d80a663e3..36cd5c14e 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -341,7 +341,7 @@ GNUNET_TESTBED_hosts_load_from_file (const char *filename, | |||
341 | data[offset] = '\0'; | 341 | data[offset] = '\0'; |
342 | username = NULL; | 342 | username = NULL; |
343 | hostname = NULL; | 343 | hostname = NULL; |
344 | ret = SSCANF (buf, "%a[a-zA-Z0-9_]@%a[a-zA-Z0-9.]:%hd", | 344 | ret = SSCANF (buf, "%m[a-zA-Z0-9_]@%m[a-zA-Z0-9.]:%hd", |
345 | &username, &hostname, &port); | 345 | &username, &hostname, &port); |
346 | if (3 == ret) | 346 | if (3 == ret) |
347 | { | 347 | { |