[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.34 and 1.35

version 1.34, 2015/11/21 12:50:58 version 1.35, 2015/12/07 18:46:35
Line 54 
Line 54 
   
 struct passwd *pw;  struct passwd *pw;
 int doall = 0;  int doall = 0;
   int daynames = 0;
 time_t f_time = 0;  time_t f_time = 0;
 int bodun_always = 0;  int bodun_always = 0;
   
Line 74 
Line 75 
   
         (void)setlocale(LC_ALL, "");          (void)setlocale(LC_ALL, "");
   
         while ((ch = getopt(argc, argv, "abf:t:A:B:-")) != -1)          while ((ch = getopt(argc, argv, "abwf:t:A:B:-")) != -1)
                 switch (ch) {                  switch (ch) {
                 case '-':               /* backward contemptible */                  case '-':               /* backward contemptible */
                 case 'a':                  case 'a':
Line 109 
Line 110 
                                 errx(1, "-B %s: %s", optarg, errstr);                                  errx(1, "-B %s: %s", optarg, errstr);
                         break;                          break;
   
                   case 'w':
                           daynames = 1;
                           break;
   
                 default:                  default:
                         usage();                          usage();
                 }                  }
Line 263 
Line 268 
 usage(void)  usage(void)
 {  {
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "usage: calendar [-ab] [-A num] [-B num] [-f calendarfile] "              "usage: calendar [-abw] [-A num] [-B num] [-f calendarfile] "
             "[-t [[[cc]yy]mm]dd]\n");              "[-t [[[cc]yy]mm]dd]\n");
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35