=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cmp/cmp.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/cmp/cmp.c 2003/06/03 02:56:06 1.10 --- src/usr.bin/cmp/cmp.c 2003/06/10 22:20:45 1.11 *************** *** 1,4 **** ! /* $OpenBSD: cmp.c,v 1.10 2003/06/03 02:56:06 millert Exp $ */ /* $NetBSD: cmp.c,v 1.7 1995/09/08 03:22:56 tls Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: cmp.c,v 1.11 2003/06/10 22:20:45 deraadt Exp $ */ /* $NetBSD: cmp.c,v 1.7 1995/09/08 03:22:56 tls Exp $ */ /* *************** *** 40,46 **** #if 0 static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94"; #else ! static char rcsid[] = "$OpenBSD: cmp.c,v 1.10 2003/06/03 02:56:06 millert Exp $"; #endif #endif /* not lint */ --- 40,46 ---- #if 0 static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94"; #else ! static char rcsid[] = "$OpenBSD: cmp.c,v 1.11 2003/06/10 22:20:45 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 62,70 **** static void usage(void); int ! main(argc, argv) ! int argc; ! char *argv[]; { struct stat sb1, sb2; off_t skip1, skip2; --- 62,68 ---- static void usage(void); int ! main(int argc, char *argv[]) { struct stat sb1, sb2; off_t skip1, skip2; *************** *** 101,108 **** special = 1; fd1 = 0; file1 = "stdin"; ! } ! else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) { if (sflag) exit(ERR_EXIT); else --- 99,105 ---- special = 1; fd1 = 0; file1 = "stdin"; ! } else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) { if (sflag) exit(ERR_EXIT); else *************** *** 119,126 **** special = 1; fd2 = 0; file2 = "stdin"; ! } ! else if ((fd2 = open(file2, O_RDONLY, 0)) < 0) { if (sflag) exit(ERR_EXIT); else --- 116,122 ---- special = 1; fd2 = 0; file2 = "stdin"; ! } else if ((fd2 = open(file2, O_RDONLY, 0)) < 0) { if (sflag) exit(ERR_EXIT); else *************** *** 160,166 **** } static void ! usage() { (void)fprintf(stderr, --- 156,162 ---- } static void ! usage(void) { (void)fprintf(stderr,