m = pmenu_init(ps3_cui->cui, 3, cui_on_exit);
if (!m) {
- pb_log("%s: failed\n", __func__);
+ pb_log_fn("failed\n");
return NULL;
}
- m->hot_key = ps3_hot_key;
+ m->n_hot_keys = 2;
+ m->hot_keys = talloc_array(m, hot_key_fn *, m->n_hot_keys);
+ if (!m->hot_keys) {
+ pb_log_fn("failed to allocate hot_keys\n");
+ talloc_free(m);
+ return NULL;
+ }
+ m->hot_keys[0] = ps3_hot_key;
+ m->hot_keys[1] = pmenu_main_hot_keys;
m->on_new = cui_item_new;
#if defined(DEBUG)
m = pmenu_init(ps3_cui->cui, 12, ps3_svm_to_mm_helper);
if (!m) {
- pb_log("%s: failed\n", __func__);
+ pb_log_fn("failed\n");
return NULL;
}
result += sigaction(SIGWINCH, &sa, NULL);
if (result) {
- pb_log("%s sigaction failed.\n", __func__);
+ pb_log_fn("sigaction failed.\n");
return EXIT_FAILURE;
}