X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftestbed%2Fgenerate-underlay-topology.c;h=726bed1798e492272638516cdbcfb84b7f295a4e;hb=d17a17ea785f91c18b5694eab3372c4e4564d95e;hp=7857652e03bb8a5e899ecd1b8e249a993e110ba6;hpb=6e599264ad13e8fc105493d74d7c11d46f8739ed;p=oweals%2Fgnunet.git diff --git a/src/testbed/generate-underlay-topology.c b/src/testbed/generate-underlay-topology.c index 7857652e0..726bed179 100644 --- a/src/testbed/generate-underlay-topology.c +++ b/src/testbed/generate-underlay-topology.c @@ -11,12 +11,12 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . SPDX-License-Identifier: AGPL3.0-or-later -*/ + */ /** * @file testbed/generate-underlay-topology.c @@ -121,7 +121,7 @@ link_processor (void *cls, } fprintf (stdout, "%u -> %u\n", A, B); GNUNET_break (SQLITE_OK == sqlite3_reset (stmt_insert)); - //GNUNET_break (SQLITE_OK == sqlite3_clear_bindings (stmt_insert)); + // GNUNET_break (SQLITE_OK == sqlite3_clear_bindings (stmt_insert)); if ((SQLITE_OK != sqlite3_bind_int (stmt_insert, 1, B)) || (SQLITE_OK != sqlite3_bind_int (stmt_insert, 2, A))) { @@ -273,6 +273,7 @@ run (void *cls, return; } break; + case GNUNET_TESTBED_TOPOLOGY_FROM_FILE: if (NULL == (arg_str1 = args[argc++])) { @@ -281,6 +282,7 @@ run (void *cls, return; } break; + default: break; } @@ -300,6 +302,7 @@ run (void *cls, return; } break; + default: break; } @@ -316,6 +319,7 @@ run (void *cls, NULL, topology); break; + case GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI: case GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD_RING: case GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD: @@ -325,6 +329,7 @@ run (void *cls, topology, arg_uint1); break; + case GNUNET_TESTBED_TOPOLOGY_FROM_FILE: GNUNET_TESTBED_underlay_construct_ (num_peers, link_processor, @@ -332,6 +337,7 @@ run (void *cls, topology, arg_str1); break; + case GNUNET_TESTBED_TOPOLOGY_SCALE_FREE: GNUNET_TESTBED_underlay_construct_ (num_peers, link_processor, @@ -340,6 +346,7 @@ run (void *cls, arg_uint1, arg_uint2); break; + default: GNUNET_assert (0); } @@ -353,13 +360,13 @@ int main (int argc, char *const argv[]) { struct GNUNET_GETOPT_CommandLineOption option[] = { - GNUNET_GETOPT_option_uint ('p', "num-peers", "COUNT", gettext_noop ("create COUNT number of peers"), &num_peers), - GNUNET_GETOPT_OPTION_END}; + GNUNET_GETOPT_OPTION_END + }; int ret;