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

Diff for /src/usr.bin/lam/lam.c between version 1.19 and 1.20

version 1.19, 2015/10/09 01:37:08 version 1.20, 2018/07/11 11:35:06
Line 109 
Line 109 
         P = S = F = T = 0;              /* capitalized options */          P = S = F = T = 0;              /* capitalized options */
         while (optind < argc) {          while (optind < argc) {
                 switch (ch = getopt(argc, argv, "F:f:P:p:S:s:T:t:")) {                  switch (ch = getopt(argc, argv, "F:f:P:p:S:s:T:t:")) {
                   case 'P': case 'p':
                           P = (ch == 'P');
                           ip->pad = 1;
                           /* FALLTHROUGH */
                 case 'F': case 'f':                  case 'F': case 'f':
                         F = (ch == 'F');                          F = (ch == 'F');
                         /* Validate format string argument. */                          /* Validate format string argument. */
Line 123 
Line 127 
                                 err(1, NULL);                                  err(1, NULL);
                         snprintf(p, siz, "%%%ss", optarg);                          snprintf(p, siz, "%%%ss", optarg);
                         ip->format = p;                          ip->format = p;
                         break;  
                 case 'P': case 'p':  
                         P = (ch == 'P');  
                         ip->pad = 1;  
                         break;                          break;
                 case 'S': case 's':                  case 'S': case 's':
                         S = (ch == 'S');                          S = (ch == 'S');

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20