summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp/misc.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-11-05 20:33:40 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-11-05 20:33:40 +0000
commit3e00db61efc8e8fc7d328f24d170414bc889ff17 (patch)
treef39f8026981638c17e0b3d5d6e33038112872177 /usr.bin/cmp/misc.c
parentc296aeaf7d6950bfbefac0b5d5a7109221e952d5 (diff)
downloadFreeBSD-src-3e00db61efc8e8fc7d328f24d170414bc889ff17.zip
FreeBSD-src-3e00db61efc8e8fc7d328f24d170414bc889ff17.tar.gz
Make filenames const to avoid a few warnings.
Add FreeBSD tags. Reviewed by: cmp
Diffstat (limited to 'usr.bin/cmp/misc.c')
-rw-r--r--usr.bin/cmp/misc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/cmp/misc.c b/usr.bin/cmp/misc.c
index 248ef93..258d860 100644
--- a/usr.bin/cmp/misc.c
+++ b/usr.bin/cmp/misc.c
@@ -29,6 +29,9 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ *
*/
#ifndef lint
@@ -45,7 +48,7 @@ static const char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
void
eofmsg(file)
- char *file;
+ const char *file;
{
if (!sflag)
warnx("EOF on %s", file);
@@ -54,7 +57,7 @@ eofmsg(file)
void
diffmsg(file1, file2, byte, line)
- char *file1, *file2;
+ const char *file1, *file2;
off_t byte, line;
{
if (!sflag)
OpenPOWER on IntegriCloud