case 'S': f_setup.script_cols = atoi(zoptarg); break;
case 't': u_setup.tandy_bit = 1; break;
case 'u': f_setup.undo_slots = atoi(zoptarg); break;
- case 'v': print_version(); exit(2); break;
+ case 'v': print_version(); exit(0); break;
case 'w': u_setup.screen_width = atoi(zoptarg); break;
case 'x': f_setup.expand_abbreviations = 1; break;
case 'Z':
puts (INFORMATION);
puts (INFO2);
- exit (1);
+ exit (0);
}
/* This section is exceedingly messy and really can't be fixed
break;
case 'v':
print_version();
- exit(2);
+ exit(0);
break;
case 'w':
user_text_width = atoi(zoptarg);
printf("FROTZ V%s\tDumb interface.\n", VERSION);
puts(INFORMATION);
puts(INFO2);
- exit(1);
+ exit(0);
}
/* Save the story file name */
f_setup.expand_abbreviations = 1;
if (c == 'X') {
usage(USAGE_EXTENDED);
- exit(EXIT_FAILURE);
+ exit(EXIT_SUCCESS);
}
if (c == 'Z')
if (num >= ERR_REPORT_NEVER && num <= ERR_REPORT_FATAL)
printf
(" The core and SDL port are currently maintained by David Griffith.\n");
printf(" Frotz's homepage is https://661.org/proj/if/frotz/\n\n");
- exit(2);
+ exit(EXIT_SUCCESS);
}
if (argv[zoptind] == NULL) {
usage(USAGE_NORMAL);
- exit(EXIT_FAILURE);
+ exit(EXIT_SUCCESS);
}
f_setup.story_file = strdup(argv[zoptind]);