Changeset dc5c303 in mainline for uspace/lib/ui/src/promptdialog.c


Ignore:
Timestamp:
2023-12-28T13:59:23Z (14 months ago)
Author:
GitHub <noreply@…>
Children:
6b66de6b
Parents:
42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
git-committer:
GitHub <noreply@…> (2023-12-28 13:59:23)
Message:

Merge branch 'master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/promptdialog.c

    r42c2e65 rdc5c303  
    327327{
    328328        ui_prompt_dialog_t *dialog = (ui_prompt_dialog_t *) arg;
    329         const char *fname;
     329        const char *text;
    330330
    331331        if (event->type == KEY_PRESS &&
     
    334334                        /* Confirm */
    335335                        if (dialog->cb != NULL && dialog->cb->bok != NULL) {
    336                                 fname = ui_entry_get_text(dialog->ename);
    337                                 dialog->cb->bok(dialog, dialog->arg, fname);
     336                                text = ui_entry_get_text(dialog->ename);
     337                                dialog->cb->bok(dialog, dialog->arg, text);
    338338                                return;
    339339                        }
     
    358358{
    359359        ui_prompt_dialog_t *dialog = (ui_prompt_dialog_t *) arg;
    360         const char *fname;
     360        const char *text;
    361361
    362362        if (dialog->cb != NULL && dialog->cb->bok != NULL) {
    363                 fname = ui_entry_get_text(dialog->ename);
    364                 dialog->cb->bok(dialog, dialog->arg, fname);
     363                text = ui_entry_get_text(dialog->ename);
     364                dialog->cb->bok(dialog, dialog->arg, text);
    365365        }
    366366}
Note: See TracChangeset for help on using the changeset viewer.