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

Diff for /src/usr.bin/less/option.c between version 1.13 and 1.14

version 1.13, 2015/11/09 14:25:32 version 1.14, 2015/11/09 16:39:13
Line 332 
Line 332 
         how_toggle &= ~OPT_NO_PROMPT;          how_toggle &= ~OPT_NO_PROMPT;
   
         if (o == NULL) {          if (o == NULL) {
                 error("No such option", NULL_PARG);                  error("No such option", NULL);
                 return;                  return;
         }          }
   
Line 415 
Line 415 
                         case OPT_SET:                          case OPT_SET:
                         case OPT_UNSET:                          case OPT_UNSET:
                                 error("Cannot use \"-+\" or \"--\" "                                  error("Cannot use \"-+\" or \"--\" "
                                     "for a string option", NULL_PARG);                                      "for a string option", NULL);
                                 return;                                  return;
                         }                          }
                         break;                          break;
Line 434 
Line 434 
                                 break;                                  break;
                         case OPT_SET:                          case OPT_SET:
                                 error("Can't use \"-!\" for a numeric option",                                  error("Can't use \"-!\" for a numeric option",
                                     NULL_PARG);                                      NULL);
                                 return;                                  return;
                         }                          }
                         break;                          break;
Line 461 
Line 461 
                         /*                          /*
                          * Print the odesc message.                           * Print the odesc message.
                          */                           */
                         error(o->odesc[*(o->ovar)], NULL_PARG);                          error(o->odesc[*(o->ovar)], NULL);
                         break;                          break;
                 case NUMBER:                  case NUMBER:
                         /*                          /*

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14