Skip to content

Commit

Permalink
clean merge conflicts dirtiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Christer Ekholm committed Jan 18, 2024
1 parent faba3d1 commit 38c845f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/cargs.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ CAG_PUBLIC void cag_option_print(const cag_option *options, size_t option_count,
* @param printer_ctx The parameter for printer callback. For example fprint
* could use parameter stderr.
*/
CAG_PUBLIC void cag_option_printer(const cag_option *options,
size_t option_count, cag_printer printer, void *printer_ctx);
CAG_PUBLIC void cag_option_printer(const cag_option *options,
size_t option_count, cag_printer printer, void *printer_ctx);

CAG_DEPRECATED(
"cag_option_prepare has been deprecated. Use cag_option_init instead.")
Expand Down
1 change: 0 additions & 1 deletion src/cargs.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ static size_t cag_option_get_print_indention(const cag_option *options,
return result;
}


void cag_option_init(cag_option_context *context, const cag_option *options,
size_t option_count, int argc, char **argv)
{
Expand Down
4 changes: 3 additions & 1 deletion test/option_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,12 +912,14 @@ int option_error_print_short(void)
goto err_test;
}

destroy_args();
fclose(test_file);
return EXIT_SUCCESS;

err_test:
err_read:
err_seek:
destroy_args();
err_setup:
fclose(test_file);
err_open:
Expand Down Expand Up @@ -973,4 +975,4 @@ int option_error_print_long(void)
fclose(test_file);
err_open:
return EXIT_FAILURE;
}
}

0 comments on commit 38c845f

Please sign in to comment.