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

Diff for /src/usr.bin/tset/Attic/term.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:41:57 version 1.3, 1997/01/17 07:13:44
Line 78 
Line 78 
   
         /* Try ttyname(3); check for dialup or other mapping. */          /* Try ttyname(3); check for dialup or other mapping. */
         if (ttypath = ttyname(STDERR_FILENO)) {          if (ttypath = ttyname(STDERR_FILENO)) {
                 if (p = rindex(ttypath, '/'))                  if (p = strrchr(ttypath, '/'))
                         ++p;                          ++p;
                 else                  else
                         p = ttypath;                          p = ttypath;
Line 151 
Line 151 
                         return (dflt);                          return (dflt);
                 }                  }
   
                 if (p = index(answer, '\n'))                  if (p = strchr(answer, '\n'))
                         *p = '\0';                          *p = '\0';
                 if (answer[0])                  if (answer[0])
                         return (answer);                          return (answer);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3