Deleted Added
full compact
special.c (302408) special.c (314427)
1/*-
2 * Copyright (c) 1991, 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

--- 20 unchanged lines hidden (view full) ---

29
30#if 0
31#ifndef lint
32static char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94";
33#endif
34#endif
35
36#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 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

--- 20 unchanged lines hidden (view full) ---

29
30#if 0
31#ifndef lint
32static char sccsid[] = "@(#)special.c 8.3 (Berkeley) 4/2/94";
33#endif
34#endif
35
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: stable/11/usr.bin/cmp/special.c 223376 2011-06-21 20:44:06Z delphij $");
37__FBSDID("$FreeBSD: stable/11/usr.bin/cmp/special.c 314427 2017-02-28 22:49:41Z asomers $");
38
39#include <sys/types.h>
40
41#include <err.h>
42#include <stdlib.h>
43#include <stdio.h>
44
45#include "extern.h"

--- 48 unchanged lines hidden (view full) ---

94 if (ferror(fp2))
95 err(ERR_EXIT, "%s", file2);
96 if (feof(fp1)) {
97 if (!feof(fp2))
98 eofmsg(file1);
99 } else
100 if (feof(fp2))
101 eofmsg(file2);
38
39#include <sys/types.h>
40
41#include <err.h>
42#include <stdlib.h>
43#include <stdio.h>
44
45#include "extern.h"

--- 48 unchanged lines hidden (view full) ---

94 if (ferror(fp2))
95 err(ERR_EXIT, "%s", file2);
96 if (feof(fp1)) {
97 if (!feof(fp2))
98 eofmsg(file1);
99 } else
100 if (feof(fp2))
101 eofmsg(file2);
102 fclose(fp2);
103 fclose(fp1);
102 if (dfound)
103 exit(DIFF_EXIT);
104}
104 if (dfound)
105 exit(DIFF_EXIT);
106}