151411Sbostic /*- 261942Sbostic * Copyright (c) 1991, 1993 361942Sbostic * The Regents of the University of California. All rights reserved. 451411Sbostic * 551411Sbostic * %sccs.include.redist.c% 651411Sbostic */ 751411Sbostic 851411Sbostic #ifndef lint 9*66589Spendry static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 04/01/94"; 1051411Sbostic #endif /* not lint */ 1151411Sbostic 1251411Sbostic #include <sys/types.h> 13*66589Spendry 14*66589Spendry #include <err.h> 1551411Sbostic #include <stdio.h> 1651411Sbostic #include <stdlib.h> 17*66589Spendry 1851411Sbostic #include "extern.h" 1951411Sbostic 2051411Sbostic void 2151411Sbostic eofmsg(file) 2251411Sbostic char *file; 2351411Sbostic { 2451411Sbostic if (!sflag) 25*66589Spendry warnx("EOF on %s", file); 26*66589Spendry exit(DIFF_EXIT); 2751411Sbostic } 2851411Sbostic 2951411Sbostic void 3051411Sbostic diffmsg(file1, file2, byte, line) 3151411Sbostic char *file1, *file2; 3251411Sbostic off_t byte, line; 3351411Sbostic { 3451411Sbostic if (!sflag) 3554187Sbostic (void)printf("%s %s differ: char %qd, line %qd\n", 3651411Sbostic file1, file2, byte, line); 37*66589Spendry exit(DIFF_EXIT); 3851411Sbostic } 39