--- projects/cms/source/ihost/ihost.c 2004/01/05 16:48:55 1.46 +++ projects/cms/source/ihost/ihost.c 2004/01/18 23:29:15 1.49 @@ -241,7 +241,7 @@ int tcp_comm(FILE *f, char *send, char **response, cha *response=fpgetline(f); fseek(f, 0, SEEK_CUR); - if(*response!=NULL) log_msg(LOG_DEBUG, "Recieved %s", *response); + if(*response!=NULL) log_msg(LOG_DEBUG, "Received %s", *response); if( (*response==NULL) || (strcmp(*response, "ERROR")==0) ) return -1; @@ -741,7 +741,7 @@ int main(int argc, char **argv){ ihost_state.file_list=NULL; ihost_state.last_modified=NULL; - while((cmdopt=getopt(argc, argv, "vfhVs:i:")) != -1){ + while((cmdopt=getopt(argc, argv, "vfVn:i:s:p:h")) != -1){ switch(cmdopt){ case 'v': ihost_config.verbose++; @@ -827,7 +827,7 @@ int main(int argc, char **argv){ log_msg(LOG_INFO, "Starting ihost..."); log_msg(LOG_DEBUG, "Running statgrab_init()"); - if(!statgrab_init()){ + if(statgrab_init()){ log_msg(LOG_CRIT, "statgrab_init failed (%m)"); exit(1); }