Skip to content

Commit

Permalink
2024-09-04 18:03:48
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Sep 4, 2024
1 parent 0a6c840 commit 28c394a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quickjs/cmdopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ struct CMDOption {

static const char *cmd_prog_name;

int ckb_vprintf(const char *format, va_list va);
void cmd_error(const char *fmt, ...)
{
va_list ap;

va_start(ap, fmt);
printf("%s:", cmd_prog_name);
ckb_vprintf(fmt, ap);
vprintf(fmt, ap);
exit(1);
}

Expand Down

0 comments on commit 28c394a

Please sign in to comment.