134c05bc5Sbostic /*-
2*5e3ce5bfSpendry * Copyright (c) 1991, 1993, 1994
3a991ba24Sbostic * The Regents of the University of California. All rights reserved.
434c05bc5Sbostic *
534c05bc5Sbostic * %sccs.include.redist.c%
634c05bc5Sbostic */
734c05bc5Sbostic
834c05bc5Sbostic #ifndef lint
9*5e3ce5bfSpendry static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 04/02/94";
1034c05bc5Sbostic #endif /* not lint */
1134c05bc5Sbostic
1234c05bc5Sbostic #include <sys/types.h>
133ec1396fSpendry
143ec1396fSpendry #include <err.h>
1534c05bc5Sbostic #include <stdio.h>
1634c05bc5Sbostic #include <stdlib.h>
173ec1396fSpendry
1834c05bc5Sbostic #include "extern.h"
1934c05bc5Sbostic
2034c05bc5Sbostic void
eofmsg(file)2134c05bc5Sbostic eofmsg(file)
2234c05bc5Sbostic char *file;
2334c05bc5Sbostic {
2434c05bc5Sbostic if (!sflag)
253ec1396fSpendry warnx("EOF on %s", file);
263ec1396fSpendry exit(DIFF_EXIT);
2734c05bc5Sbostic }
2834c05bc5Sbostic
2934c05bc5Sbostic void
diffmsg(file1,file2,byte,line)3034c05bc5Sbostic diffmsg(file1, file2, byte, line)
3134c05bc5Sbostic char *file1, *file2;
3234c05bc5Sbostic off_t byte, line;
3334c05bc5Sbostic {
3434c05bc5Sbostic if (!sflag)
3594dd32dfSbostic (void)printf("%s %s differ: char %qd, line %qd\n",
3634c05bc5Sbostic file1, file2, byte, line);
373ec1396fSpendry exit(DIFF_EXIT);
3834c05bc5Sbostic }
39