Skip to content

Commit ea15513

Browse files
authored
Merge pull request #481 from Integral-Tech/fix-build-error
fix: resolve build errors
2 parents dd3d8f5 + a3fce4b commit ea15513

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/ui/ui.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static ConfigValues configValues;
131131

132132

133133

134-
static void *stopHp() {
134+
static void *stopHp(void *) {
135135
if(running_info[0]!=NULL){
136136
gtk_label_set_label(label_status,"Stopping ...");
137137
start_pb_pulse();
@@ -710,7 +710,7 @@ void clear_running_info(){
710710
running_info[0]=NULL;
711711
}
712712

713-
void* init_running_info(){
713+
void* init_running_info(void *){
714714

715715
clear_running_info();
716716
lock_all_views(TRUE);
@@ -772,18 +772,18 @@ static void *run_create_hp_shell(void *cmd) {
772772
gtk_label_set_label(label_status,buf);
773773

774774
if (strstr(buf, AP_ENABLED) != NULL) {
775-
init_running_info();
775+
init_running_info(NULL);
776776
return 0;
777777
}
778778
}
779779

780780
if (pclose(fp)) {
781781
printf("Command not found or exited with error status\n");
782-
init_running_info();
782+
init_running_info(NULL);
783783
return NULL;
784784
}
785785

786-
init_running_info();
786+
init_running_info(NULL);
787787
return 0;
788788
}
789789

src/ui/ui.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void* run_create_hp_shell(void *cmd);
4848

4949
void init_interface_list();
5050

51-
void* init_running_info();
51+
void* init_running_info(void *);
5252

5353
static gboolean update_progress_in_timeout (gpointer pbar);
5454

@@ -60,7 +60,7 @@ static guint start_pb_pulse();
6060

6161
static void on_create_hp_clicked(GtkWidget *widget,gpointer data);
6262

63-
static void *stopHp();
63+
static void *stopHp(void *);
6464

6565
static int init_config_val_input(ConfigValues* cv);
6666

0 commit comments

Comments
 (0)