summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-07-09 16:28:31 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-07-09 16:28:31 +0000
commit3e3f8a2b8de41b1652e43969280596e35f1873df (patch)
treee55b7a0410a95a278860b26af6e498fd8c6b9b28
parent123b0ef78d67c187925fde037083df6d9fd593a6 (diff)
explicit casts to const char *
ok joris@
-rw-r--r--usr.bin/cvs/diff.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index b8b32ef37d9..5bfcaa2422f 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.43 2005/06/28 08:44:44 xsa Exp $ */
+/* $OpenBSD: diff.c,v 1.44 2005/07/09 16:28:30 niallo Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -1575,11 +1575,11 @@ match_function(const long *f, int pos, FILE *fp)
nc = fread(buf, 1, nc, fp);
if (nc > 0) {
buf[nc] = '\0';
- p = strchr(buf, '\n');
+ p = strchr((const char *)buf, '\n');
if (p != NULL)
*p = '\0';
if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {
- strlcpy(lastbuf, buf, sizeof lastbuf);
+ strlcpy(lastbuf, (const char *)buf, sizeof lastbuf);
lastmatchline = pos;
return lastbuf;
}