- case 0:
- /* printf ("nothing interesting: %s\n", word); */
- argument = 0;
- break;
- case 1:
- /* printf ("shared-network named: %s\n", word); */
- strcpy(next_free_shared_name, word);
- shared_p =
- shared_networks + num_shared_networks;
- num_shared_networks++;
- shared_p++;
- shared_p->name = next_free_shared_name;
- shared_p->available = 0;
- shared_p->used = 0;
- shared_p->touched = 0;
- shared_p->backups = 0;
- /* Temporary abuse of argument variable */
- argument =
- strlen(next_free_shared_name) + 1;
- if (last_shared_name >
- next_free_shared_name + argument) {
- next_free_shared_name += argument;
- } else {
- /* TODO: make this go away by reallocationg more space. */
- eprintf
- ("parse_config: End of shared-network space, increase SHARED_NETWORKS_NAMES and recompile");
- exit(EXIT_FAILURE);
- }
- argument = 0;
- braces_shared = braces;
- break;