summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-02-21 07:04:49 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-02-21 07:04:49 +0000
commitbeb9a85a822e9dd2309726fff38998725cfd9243 (patch)
tree8e83560efd24f0b9a217953b8b6c6cb25d823d21 /gnu/usr.bin/cvs
parent953cbb580168f4f35072f7a8981ebcff40f3b8ed (diff)
Fix a const poisoning warning
Diffstat (limited to 'gnu/usr.bin/cvs')
-rw-r--r--gnu/usr.bin/cvs/src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c
index 1196ce4d105..0127d653dd0 100644
--- a/gnu/usr.bin/cvs/src/main.c
+++ b/gnu/usr.bin/cvs/src/main.c
@@ -918,7 +918,8 @@ parseopts(root)
char path[PATH_MAX];
int save_errno;
char buf[1024];
- char *p;
+ const char *p;
+ char *q;
FILE *fp;
if (root == NULL) {
@@ -939,9 +940,9 @@ parseopts(root)
while (fgets(buf, sizeof buf, fp) != NULL) {
if (buf[0] == '#')
continue;
- p = strrchr(buf, '\n');
- if (p)
- *p = '\0';
+ q = strrchr(buf, '\n');
+ if (q)
+ *q = '\0';
if (!strncmp(buf, "tag=", 4)) {
char *RCS_citag = strdup(buf+4);