=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/diff.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/rcs/diff.c 2006/05/10 01:10:23 1.5 --- src/usr.bin/rcs/diff.c 2006/05/11 08:40:34 1.6 *************** *** 1,4 **** ! /* $OpenBSD: diff.c,v 1.5 2006/05/10 01:10:23 ray Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: diff.c,v 1.6 2006/05/11 08:40:34 ray Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. *************** *** 313,337 **** goto closem; } ! if (stat(file1, &stb1) < 0) { warn("%s", file1); goto closem; } ! if (stat(file2, &stb2) < 0) { warn("%s", file2); goto closem; } ! switch (files_differ(f1, f2)) { ! case 0: goto closem; - case 1: - break; - default: - /* error */ - goto closem; - } if (!asciifile(f1) || !asciifile(f2)) { rval = D_ERROR; --- 313,330 ---- goto closem; } ! if (fstat(fileno(f1), &stb1) < 0) { warn("%s", file1); goto closem; } ! if (fstat(fileno(f2), &stb2) < 0) { warn("%s", file2); goto closem; } ! if (files_differ(f1, f2) != 1) goto closem; if (!asciifile(f1) || !asciifile(f2)) { rval = D_ERROR; *************** *** 829,835 **** } } ! static __inline void range(int a, int b, char *separator) { diff_output("%d", a > b ? b : a); --- 822,828 ---- } } ! static void range(int a, int b, char *separator) { diff_output("%d", a > b ? b : a); *************** *** 837,843 **** diff_output("%s%d", separator, b); } ! static __inline void uni_range(int a, int b) { if (a < b) --- 830,836 ---- diff_output("%s%d", separator, b); } ! static void uni_range(int a, int b) { if (a < b)