Changeset - 7c98a38ebf04
[Not reviewed]
default
0 1 0
LordOfWar - 16 years ago 2009-10-01 05:03:47

fixed simple error in main()'s user interface where it would exit the user interface when you chose to print all the jobnums in the queue
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -572,13 +572,13 @@ int main(int argc, char *argv[])
 
    printf("5-->delete a job");
 
    printf("6-->print jobnums in queue");
 
    printf("7-->exit menu");
 

	
 
    scanf("%d", &command);
 

	
 
    if(command == 6)
 
    if(command == 7)
 
      break;
 

	
 
    switch(command)
 
    {
 
    case 1:
 
      printf("job number:");
 
@@ -610,12 +610,14 @@ int main(int argc, char *argv[])
 
      scanf("%d", &jobnum);
 
      distrenjob_remove(&head, distrenjob_get(&head, jobnum));
 
      break;
 
    case 6:
 
      printAllJobnums(&head);
 
      break;
 
    default:
 
      printf("invalid input");
 
    }
 
  }
 

	
 
  distrend_listen(&listenset, config);
 
  /* This is called the "main loop" */
 
  while(cont)
0 comments (0 inline, 0 general)