Skip to content

Commit

Permalink
cli UPDATE dont use deprecated print clb
Browse files Browse the repository at this point in the history
  • Loading branch information
roman authored and michalvasko committed Nov 3, 2023
1 parent ff051ea commit b412603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int done;
extern struct nc_session *session;

void
lnc2_print_clb(NC_VERB_LEVEL level, const char *msg)
lnc2_print_clb(const struct nc_session *UNUSED(session), NC_VERB_LEVEL level, const char *msg)
{
int was_rawmode = 0;

Expand Down Expand Up @@ -138,7 +138,7 @@ main(void)
action.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &action, NULL);

nc_set_print_clb(lnc2_print_clb);
nc_set_print_clb_session(lnc2_print_clb);
ly_set_log_clb(ly_print_clb, 1);
linenoiseSetCompletionCallback(complete_cmd);
linenoiseHistoryDataFree(free);
Expand Down

0 comments on commit b412603

Please sign in to comment.