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

Diff for /src/usr.bin/less/ttyin.c between version 1.11 and 1.12

version 1.11, 2015/11/09 03:09:19 version 1.12, 2019/06/28 13:35:01
Line 32 
Line 32 
          * but also usually lets you read from the keyboard.           * but also usually lets you read from the keyboard.
          */           */
         tty = open("/dev/tty", O_RDONLY);          tty = open("/dev/tty", O_RDONLY);
         if (tty < 0)          if (tty == -1)
                 tty = STDERR_FILENO;                  tty = STDERR_FILENO;
 }  }
   

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12