[BACK]Return to at.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / at

Diff for /src/usr.bin/at/at.c between version 1.53 and 1.54

version 1.53, 2007/09/02 15:19:31 version 1.54, 2007/09/05 08:02:21
Line 486 
Line 486 
         long l;          long l;
         char queue, *ep;          char queue, *ep;
         DIR *spool;          DIR *spool;
         int i, shortformat, numjobs, maxjobs;          int i, shortformat;
           size_t numjobs, maxjobs;
   
         if (argc) {          if (argc) {
                 if ((uids = calloc(sizeof(uid_t), argc)) == NULL)                  if ((uids = calloc(sizeof(uid_t), argc)) == NULL)
Line 580 
Line 581 
                 job->mode = stbuf.st_mode;                  job->mode = stbuf.st_mode;
                 job->queue = queue;                  job->queue = queue;
                 if (numjobs == maxjobs) {                  if (numjobs == maxjobs) {
                         int newjobs = maxjobs * 2;                          size_t newjobs = maxjobs * 2;
                         newatjobs = realloc(atjobs, newjobs * sizeof(job));                          newatjobs = realloc(atjobs, newjobs * sizeof(job));
                         if (newatjobs == NULL)                          if (newatjobs == NULL)
                                 panic("Insufficient virtual memory");                                  panic("Insufficient virtual memory");
Line 596 
Line 597 
                 if (numjobs == 0 && !shortformat)                  if (numjobs == 0 && !shortformat)
                         fprintf(stderr, "no files in queue.\n");                          fprintf(stderr, "no files in queue.\n");
                 else if (count_only)                  else if (count_only)
                         printf("%d\n", numjobs);                          printf("%zu\n", numjobs);
                 free(atjobs);                  free(atjobs);
                 return;                  return;
         }          }

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54