Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/ui/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions src/ui/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down