cmp.c (63843) | cmp.c (86099) |
---|---|
1/* 2 * Copyright (c) 1987, 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 1987, 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/usr.bin/cmp/cmp.c 63843 2000-07-25 13:01:34Z sheldonh $ | 33 * $FreeBSD: head/usr.bin/cmp/cmp.c 86099 2001-11-05 20:33:40Z dwmalone $ |
34 * 35 */ 36 37#ifndef lint 38static const char copyright[] = 39"@(#) Copyright (c) 1987, 1990, 1993, 1994\n\ 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ --- 21 unchanged lines hidden (view full) --- 63int 64main(argc, argv) 65 int argc; 66 char *argv[]; 67{ 68 struct stat sb1, sb2; 69 off_t skip1, skip2; 70 int ch, fd1, fd2, special; | 34 * 35 */ 36 37#ifndef lint 38static const char copyright[] = 39"@(#) Copyright (c) 1987, 1990, 1993, 1994\n\ 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ --- 21 unchanged lines hidden (view full) --- 63int 64main(argc, argv) 65 int argc; 66 char *argv[]; 67{ 68 struct stat sb1, sb2; 69 off_t skip1, skip2; 70 int ch, fd1, fd2, special; |
71 char *file1, *file2; | 71 const char *file1, *file2; |
72 73 while ((ch = getopt(argc, argv, "-lsxz")) != -1) 74 switch (ch) { 75 case 'l': /* print all differences */ 76 lflag = 1; 77 break; 78 case 's': /* silent run */ 79 sflag = 1; --- 101 unchanged lines hidden --- | 72 73 while ((ch = getopt(argc, argv, "-lsxz")) != -1) 74 switch (ch) { 75 case 'l': /* print all differences */ 76 lflag = 1; 77 break; 78 case 's': /* silent run */ 79 sflag = 1; --- 101 unchanged lines hidden --- |