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

Diff for /src/usr.bin/calendar/calendar.c between version 1.15 and 1.16

version 1.15, 2001/09/03 15:53:00 version 1.16, 2001/09/26 20:38:55
Line 73 
Line 73 
 struct passwd *pw;  struct passwd *pw;
 int doall = 0;  int doall = 0;
 time_t f_time = 0;  time_t f_time = 0;
   int bodun_always = 0;
   
 int f_dayAfter = 0; /* days after current date */  int f_dayAfter = 0; /* days after current date */
 int f_dayBefore = 0; /* days before current date */  int f_dayBefore = 0; /* days before current date */
Line 91 
Line 92 
   
         (void)setlocale(LC_ALL, "");          (void)setlocale(LC_ALL, "");
   
         while ((ch = getopt(argc, argv, "-af:t:A:B:")) != -1)          while ((ch = getopt(argc, argv, "-abf:t:A:B:")) != -1)
                 switch (ch) {                  switch (ch) {
                 case '-':               /* backward contemptible */                  case '-':               /* backward contemptible */
                 case 'a':                  case 'a':
Line 100 
Line 101 
                         doall = 1;                          doall = 1;
                         break;                          break;
   
                   case 'b':
                           bodun_always++;
                           break;
   
                 case 'f': /* other calendar file */                  case 'f': /* other calendar file */
                         calendarFile = optarg;                          calendarFile = optarg;
                         break;                          break;
Line 258 
Line 263 
 usage()  usage()
 {  {
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "usage: calendar [-a] [-A num] [-B num] [-t [[[cc]yy][mm]]dd] "              "usage: calendar [-a] [-A num] [-b] [-B num] [-t [[[cc]yy][mm]]dd] "
             "[-f calendarfile]\n");              "[-f calendarfile]\n");
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16