Condor interface: compile fix

This commit is contained in:
David Anderson 2016-07-27 23:18:30 -07:00
parent 671446ced1
commit 89dc25bc6c
2 changed files with 8 additions and 3 deletions

View File

@ -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) {

View File

@ -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;
}
};