Clarify usage function name (rename it to print_usage).

This commit is contained in:
Danila Fedorin 2016-12-01 21:39:28 -08:00
parent cbea9ee045
commit 01d2ce36d1
3 changed files with 14 additions and 14 deletions

View File

@ -50,7 +50,7 @@ int main(int argc, char *argv[])
ret = parse_parameters (&ccx_options, argc, argv);
if (ret == EXIT_NO_INPUT_FILES)
{
usage ();
print_usage ();
fatal (EXIT_NO_INPUT_FILES, "(This help screen was shown because there were no input files)\n");
}
else if (ret == EXIT_WITH_HELP)

View File

@ -151,7 +151,7 @@ void dinit_libraries( struct lib_ccx_ctx **ctx);
//params.c
int parse_parameters (struct ccx_s_options *opt, int argc, char *argv[]);
void usage (void);
void print_usage (void);
int detect_input_file_overwrite(struct lib_ccx_ctx *ctx, const char *output_filename);
int atoi_hex (char *s);
int stringztoms (const char *s, struct ccx_boundary_time *bt);

View File

@ -275,7 +275,7 @@ void set_input_format (struct ccx_s_options *opt, const char *format)
fatal (EXIT_MALFORMED_PARAMETER, "Unknown input file format: %s\n", format);
}
void usage (void)
void print_usage (void)
{
mprint ("Originally based on McPoodle's tools. Check his page for lots of information\n");
mprint ("on closed captions technical details.\n");
@ -983,7 +983,7 @@ int parse_parameters (struct ccx_s_options *opt, int argc, char *argv[])
{
if (!strcmp (argv[i],"--help") || !strcmp(argv[i], "-h"))
{
usage();
print_usage();
return EXIT_WITH_HELP;
}
if (!strcmp(argv[i], "--version"))