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

Diff for /src/usr.bin/at/parsetime.c between version 1.23 and 1.24

version 1.23, 2015/08/20 22:32:41 version 1.24, 2015/11/06 23:47:42
Line 182 
Line 182 
   
         if ((sc_token = malloc(sc_len)) == NULL) {          if ((sc_token = malloc(sc_len)) == NULL) {
                 fprintf(stderr, "%s: Insufficient virtual memory\n",                  fprintf(stderr, "%s: Insufficient virtual memory\n",
                     ProgramName);                      __progname);
                 return (-1);                  return (-1);
         }          }
         return (0);          return (0);
Line 264 
Line 264 
 static void  static void
 plonk(int tok)  plonk(int tok)
 {  {
         fprintf(stderr, "%s: %s time\n", ProgramName,          fprintf(stderr, "%s: %s time\n", __progname,
             (tok == EOF) ? "incomplete" : "garbled");              (tok == EOF) ? "incomplete" : "garbled");
 }  }
   
Line 368 
Line 368 
         case MINUTES:          case MINUTES:
                 if (expectplur != sc_tokplur)                  if (expectplur != sc_tokplur)
                         fprintf(stderr, "%s: pluralization is wrong\n",                          fprintf(stderr, "%s: pluralization is wrong\n",
                             ProgramName);                              __progname);
                 dateadd(increment, tm);                  dateadd(increment, tm);
                 return (0);                  return (0);
         }          }
Line 446 
Line 446 
         }          }
         return (0);          return (0);
 bad:  bad:
         fprintf(stderr, "%s: garbled time\n", ProgramName);          fprintf(stderr, "%s: garbled time\n", __progname);
         return (-1);          return (-1);
 }  }
   
Line 607 
Line 607 
         }          }
         return (0);          return (0);
 bad:  bad:
         fprintf(stderr, "%s: garbled time\n", ProgramName);          fprintf(stderr, "%s: garbled time\n", __progname);
         return (-1);          return (-1);
 }  }
   
Line 700 
Line 700 
         }          }
   
         if (runtimer < 0) {          if (runtimer < 0) {
                 fprintf(stderr, "%s: garbled time\n", ProgramName);                  fprintf(stderr, "%s: garbled time\n", __progname);
                 return (-1);                  return (-1);
         }          }
   
         if (nowtimer > runtimer) {          if (nowtimer > runtimer) {
                 fprintf(stderr, "%s: cannot schedule jobs in the past\n",                  fprintf(stderr, "%s: cannot schedule jobs in the past\n",
                     ProgramName);                      __progname);
                 return (-1);                  return (-1);
         }          }
   

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24