1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
From a3fce4b3ee9371eeb7b300fa7e9f291d93986db3 Mon Sep 17 00:00:00 2001
From: Integral <integral@member.fsf.org>
Date: Sat, 7 Jun 2025 10:13:22 +0800
Subject: [PATCH] fix: resolve build errors
---
src/ui/ui.c | 10 +++++-----
src/ui/ui.h | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 3be83e9..57c943f 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -131,7 +131,7 @@ static ConfigValues configValues;
-static void *stopHp() {
+static void *stopHp(void *) {
if(running_info[0]!=NULL){
gtk_label_set_label(label_status,"Stopping ...");
start_pb_pulse();
@@ -710,7 +710,7 @@ void clear_running_info(){
running_info[0]=NULL;
}
-void* init_running_info(){
+void* init_running_info(void *){
clear_running_info();
lock_all_views(TRUE);
@@ -772,18 +772,18 @@ static void *run_create_hp_shell(void *cmd) {
gtk_label_set_label(label_status,buf);
if (strstr(buf, AP_ENABLED) != NULL) {
- init_running_info();
+ init_running_info(NULL);
return 0;
}
}
if (pclose(fp)) {
printf("Command not found or exited with error status\n");
- init_running_info();
+ init_running_info(NULL);
return NULL;
}
- init_running_info();
+ init_running_info(NULL);
return 0;
}
diff --git a/src/ui/ui.h b/src/ui/ui.h
index bd6aef7..a8bb2be 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -48,7 +48,7 @@ static void* run_create_hp_shell(void *cmd);
void init_interface_list();
-void* init_running_info();
+void* init_running_info(void *);
static gboolean update_progress_in_timeout (gpointer pbar);
@@ -60,7 +60,7 @@ static guint start_pb_pulse();
static void on_create_hp_clicked(GtkWidget *widget,gpointer data);
-static void *stopHp();
+static void *stopHp(void *);
static int init_config_val_input(ConfigValues* cv);
|