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

Diff for /src/usr.bin/ul/ul.c between version 1.1 and 1.2

version 1.1, 1995/10/18 08:46:28 version 1.2, 1995/11/13 04:03:51
Line 47 
Line 47 
 #endif /* not lint */  #endif /* not lint */
   
 #include <stdio.h>  #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
   
 #define IESC    '\033'  #define IESC    '\033'
 #define SO      '\016'  #define SO      '\016'
Line 93 
Line 95 
         char *termtype;          char *termtype;
         FILE *f;          FILE *f;
         char termcap[1024];          char termcap[1024];
         char *getenv(), *strcpy();  
   
         termtype = getenv("TERM");          termtype = getenv("TERM");
         if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1)))          if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1)))
Line 142 
Line 143 
                 if (f == NULL) {                  if (f == NULL) {
                         perror(argv[optind]);                          perror(argv[optind]);
                         exit(1);                          exit(1);
                 } else                  }
                         filter(f);  
                   filter(f);
                   fclose(f);
         }          }
         exit(0);          exit(0);
 }  }

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