diff --git a/samples/condor/boinc_gahp.cpp b/samples/condor/boinc_gahp.cpp index eff58c5376..36300e143a 100644 --- a/samples/condor/boinc_gahp.cpp +++ b/samples/condor/boinc_gahp.cpp @@ -717,7 +717,7 @@ int n_results() { // int handle_command(char* p) { char cmd[256]; - int id; + int id, retval; cmd[0] = '\0'; sscanf(p, "%s", cmd); @@ -773,7 +773,7 @@ int handle_command(char* p) { // COMMAND *cp = new COMMAND(p); p = NULL; - int retval = cp->parse_command(); + retval = cp->parse_command(); if (retval) { BPRINTF("E\n"); delete cp; @@ -790,7 +790,7 @@ int handle_command(char* p) { pthread_attr_t thread_attrs; pthread_attr_init(&thread_attrs); pthread_attr_setstacksize(&thread_attrs, 256*1024); - int retval = pthread_create( + retval = pthread_create( &thread_handle, &thread_attrs, &handle_command_aux, cp ); if (retval) { diff --git a/sched/sched_types.h b/sched/sched_types.h index 71567b5590..e3d9458e92 100644 --- a/sched/sched_types.h +++ b/sched/sched_types.h @@ -369,12 +369,17 @@ struct PROJECT_PREFS { bool dont_use_proc_type[NPROC_TYPES]; bool allow_non_selected_apps; bool allow_beta_work; + int max_jobs; + int max_cores; + void parse(); PROJECT_PREFS() { memset(&dont_use_proc_type, 0, sizeof(dont_use_proc_type)); allow_non_selected_apps = false; allow_beta_work = false; + max_jobs = 0; + max_cores = 0; } };