Changeset - c728d093bab5
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-09-29 21:20:48

Test mode, junk killage
1 file changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -493,8 +493,9 @@ int main(int argc, char *argv[])
 

	
 
  /* Argument-parser */
 
  int counter = 0;
 
  int test = 0; // Have some fun if-ness that does fun stuff when this is 1
 

	
 
  for(counter=0; counter<argc; counter++){
 
    fprintf(stderr,"argv[%d] contains: %s\n\nStarting comparisons:\n",counter,argv[counter]);
 
         if(strcmp(argv[counter], "-h") == 0) {
 
           fprintf(stderr, "Usage: distrend [option] \nStarts the distrend server\n\t-h\tshow this help\n\t-t\tlaunches queue testing interface \n");
 
           return 2;
 
@@ -502,13 +503,14 @@ int main(int argc, char *argv[])
 

	
 
          else if(strcmp(argv[counter], "-t") == 0) {
 
            fprintf(stderr, "Entering into test mode...\n\n");
 

	
 
            test=1;
 
          }
 
          else{
 
            fprintf(stderr, "Starting the server with no arguments...n\n");
 
            fprintf(stderr, "Please enter some compatible args (see -h), or invoke without any.\n\n");
 
          }
 
  }
 

	
 

	
 
  struct distrenjob head;
 
  head.priority = 0; // make head have the highest priority
 

	
0 comments (0 inline, 0 general)