+ 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 (next_free_shared_name + argument <
+ last_shared_name) {
+ next_free_shared_name += argument;
+ } else {
+ /* FIXME: make this go
+ * away by reallocationg
+ * more space. */
+ errx(EXIT_FAILURE,
+ "parse_config: increase default.h SHARED_NETWORKS_NAMES and recompile");
+ }
+ if (SHARED_NETWORKS <
+ num_shared_networks + 2) {
+ /* FIXME: make this
+ * away by reallocationg
+ * more space. */
+ errx(EXIT_FAILURE,
+ "parse_config: increase default.h SHARED_NETWORKS and recompile");
+ }
+ argument = 0;
+ braces_shared = braces;
+ break;