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

Diff for /src/usr.bin/cmp/cmp.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:32:05 version 1.3, 1996/08/01 00:01:38
Line 106 
Line 106 
                 fd1 = 0;                  fd1 = 0;
                 file1 = "stdin";                  file1 = "stdin";
         }          }
         else if ((fd1 = open(file1, O_RDONLY, 0)) < 0)          else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) {
                 err(ERR_EXIT, "%s", file1);                  if (sflag)
                           exit(ERR_EXIT);
                   else
                           err(ERR_EXIT, "%s", file1);
           }
         if (strcmp(file2 = argv[1], "-") == 0) {          if (strcmp(file2 = argv[1], "-") == 0) {
                 if (special)                  if (special)
                         errx(ERR_EXIT,                          errx(ERR_EXIT,
Line 140 
Line 144 
         else          else
                 c_regular(fd1, file1, skip1, sb1.st_size,                  c_regular(fd1, file1, skip1, sb1.st_size,
                     fd2, file2, skip2, sb2.st_size);                      fd2, file2, skip2, sb2.st_size);
         exit(0);          return 0;
 }  }
   
 static void  static void

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