artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae5e8a9
)
Fix a const poisoning warning
author
tholo
<tholo@openbsd.org>
Fri, 21 Feb 1997 07:04:48 +0000
(07:04 +0000)
committer
tholo
<tholo@openbsd.org>
Fri, 21 Feb 1997 07:04:48 +0000
(07:04 +0000)
gnu/usr.bin/cvs/src/main.c
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/cvs/src/main.c
b/gnu/usr.bin/cvs/src/main.c
index
1196ce4
..
0127d65
100644
(file)
--- 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);