ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/ihost.c
(Generate patch)

Comparing projects/cms/source/ihost/ihost.c (file contents):
Revision 1.46 by tdb, Mon Jan 5 16:48:55 2004 UTC vs.
Revision 1.49 by tdb, Sun Jan 18 23:29:15 2004 UTC

# Line 241 | Line 241 | int tcp_comm(FILE *f, char *send, char **response, cha
241          *response=fpgetline(f);
242          fseek(f, 0, SEEK_CUR);
243  
244 <        if(*response!=NULL) log_msg(LOG_DEBUG, "Recieved %s", *response);
244 >        if(*response!=NULL) log_msg(LOG_DEBUG, "Received %s", *response);
245  
246          if( (*response==NULL) || (strcmp(*response, "ERROR")==0) ) return -1;
247          
# Line 741 | Line 741 | int main(int argc, char **argv){
741          ihost_state.file_list=NULL;
742          ihost_state.last_modified=NULL;
743  
744 <        while((cmdopt=getopt(argc, argv, "vfhVs:i:")) != -1){
744 >        while((cmdopt=getopt(argc, argv, "vfVn:i:s:p:h")) != -1){
745                  switch(cmdopt){
746                          case 'v':
747                                  ihost_config.verbose++;
# Line 827 | Line 827 | int main(int argc, char **argv){
827          log_msg(LOG_INFO, "Starting ihost...");
828  
829          log_msg(LOG_DEBUG, "Running statgrab_init()");
830 <        if(!statgrab_init()){
830 >        if(statgrab_init()){
831                  log_msg(LOG_CRIT, "statgrab_init failed (%m)");
832                  exit(1);
833          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines