mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-24 11:09:48 +02:00
chore: fix tui build compiler errors
This commit is contained in:
1 parent
4a8fb113ae
commit
f72ad75db2
9 files changed
+19
-19
No files matched your search
+1
-1
@@ -228,7 +228,7 @@ void print_credits(void);
|
||||
|
||||
#ifdef TUI
|
||||
#include <newt.h>
|
||||
newtComponent get_tui_log();
|
||||
newtComponent get_tui_log(void);
|
||||
newtComponent set_tui_log(newtComponent co);
|
||||
#endif
|
||||
#endif
|
||||
+7
-7
@@ -20,7 +20,7 @@
|
||||
#define PI_STEP_CURRENT NEWT_COLORSET_CUSTOM(1)
|
||||
#define PI_STEP_OTHER NEWT_COLORSET_CUSTOM(2)
|
||||
|
||||
#define CHECKBOX_STATE(flags, opt) checkrain_options_enabled(flags, opt) ? '*' : ' '
|
||||
#define CHECKBOX_STATE(flags, opt) (flags & opt) != 0 ? '*' : ' '
|
||||
|
||||
typedef enum tui_screens {
|
||||
ERROR_SCREEN = -1,
|
||||
@@ -37,13 +37,13 @@ typedef struct bitfield_checkbox_info {
|
||||
uint64_t opt;
|
||||
} tui_bit_info_t;
|
||||
|
||||
tui_screen_t tui_screen_main();
|
||||
tui_screen_t tui_screen_options();
|
||||
tui_screen_t tui_screen_enter_recovery();
|
||||
tui_screen_t tui_screen_enter_dfu();
|
||||
tui_screen_t tui_screen_jailbreak();
|
||||
tui_screen_t tui_screen_main(void);
|
||||
tui_screen_t tui_screen_options(void);
|
||||
tui_screen_t tui_screen_enter_recovery(void);
|
||||
tui_screen_t tui_screen_enter_dfu(void);
|
||||
tui_screen_t tui_screen_jailbreak(void);
|
||||
|
||||
int redraw_screen();
|
||||
int redraw_screen(void);
|
||||
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -90,7 +90,7 @@ uint64_t set_ecid_wait_for_dfu(uint64_t ecid) {
|
||||
}
|
||||
|
||||
#ifdef TUI
|
||||
newtComponent get_tui_log() {
|
||||
newtComponent get_tui_log(void) {
|
||||
pthread_mutex_lock(&tui_log_mutex);
|
||||
newtComponent ret = tui_log_output;
|
||||
pthread_mutex_unlock(&tui_log_mutex);
|
||||
|
||||
+4
-4
@@ -12,15 +12,15 @@
|
||||
#include <palerain.h>
|
||||
#include <tui.h>
|
||||
|
||||
int redraw_screen() {
|
||||
int redraw_screen(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int destroy_window() {
|
||||
int destroy_window(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int init_window() {
|
||||
int init_window(void) {
|
||||
setlocale(LC_ALL, NULL);
|
||||
setenv(
|
||||
"NEWT_COLORS",
|
||||
@@ -61,7 +61,7 @@ int init_window() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tui() {
|
||||
int tui(void) {
|
||||
int ret = 0;
|
||||
if ((ret = init_window())) return ret;
|
||||
ret = MAIN_SCREEN;
|
||||
|
||||
@@ -12,4 +12,4 @@
|
||||
#include <palerain.h>
|
||||
#include <tui.h>
|
||||
|
||||
tui_screen_t tui_screen_enter_dfu() { return JAILBREAKING_SCREEN; }
|
||||
tui_screen_t tui_screen_enter_dfu(void) { return JAILBREAKING_SCREEN; }
|
||||
@@ -12,4 +12,4 @@
|
||||
#include <palerain.h>
|
||||
#include <tui.h>
|
||||
|
||||
tui_screen_t tui_screen_enter_recovery() { return ENTER_DFU_SCREEN; }
|
||||
tui_screen_t tui_screen_enter_recovery(void) { return ENTER_DFU_SCREEN; }
|
||||
@@ -12,4 +12,4 @@
|
||||
#include <palerain.h>
|
||||
#include <tui.h>
|
||||
|
||||
tui_screen_t tui_screen_jailbreak() { return EXIT_SCREEN; }
|
||||
tui_screen_t tui_screen_jailbreak(void) { return EXIT_SCREEN; }
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <palerain.h>
|
||||
#include <tui.h>
|
||||
|
||||
tui_screen_t tui_screen_main() {
|
||||
tui_screen_t tui_screen_main(void) {
|
||||
int ret = MAIN_SCREEN;
|
||||
bool can_start = false;
|
||||
newtCenteredWindow(WIDTH, HEIGHT, NULL);
|
||||
|
||||
@@ -21,7 +21,7 @@ void bitfield_check_cb(newtComponent box, void* data) {
|
||||
}
|
||||
|
||||
|
||||
tui_screen_t tui_screen_options() {
|
||||
tui_screen_t tui_screen_options(void) {
|
||||
tui_bit_info_t verbose_info = { &palerain_flags, palerain_option_verbose_boot };
|
||||
tui_bit_info_t rootful_info = { &palerain_flags, palerain_option_rootful };
|
||||
tui_bit_info_t setup_rootful_info = { &palerain_flags, palerain_option_setup_rootful };
|
||||
@@ -30,7 +30,7 @@ tui_screen_t tui_screen_options() {
|
||||
|
||||
static uint64_t palerain_flags = 0;
|
||||
tui_bit_info_t flower_chain_info = { &palerain_flags, palerain_option_flower_chain };
|
||||
|
||||
|
||||
const char* bootargs_entered = NULL;
|
||||
int ret = MAIN_SCREEN;
|
||||
|
||||
|
||||
Reference in new issue
Block a user