diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-15 05:05:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-15 05:05:37 +0000 |
commit | da6c1c6aef921ae5d3540bc3d81d080c145c97df (patch) | |
tree | b5903d955aac5e44e7f58bbfe3c90b4b22fc74e3 /usr.bin/rcs | |
parent | dabd393050e9b1258d79da096fc6c65aceaeb83a (diff) |
remove some bizzare idioms; ok ray
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/ci.c | 8 | ||||
-rw-r--r-- | usr.bin/rcs/rcsclean.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index d0de5a6783f..b671dc713f9 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.117 2006/03/15 03:29:01 ray Exp $ */ +/* $OpenBSD: ci.c,v 1.118 2006/03/15 05:05:35 deraadt Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -861,10 +861,10 @@ checkin_keywordscan(char *data, RCSNUM **rev, time_t *date, char **author, i = found = 0; len = strlen(data); - for (c = data; *c != '\0' && i < len; *c++) { + for (c = data; *c != '\0' && i < len; c++) { if (*c == '$') { start = c; - *c++; + c++; if (!isalpha(*c)) { c = start; continue; @@ -933,7 +933,7 @@ checkin_keywordtype(char *keystring) char *p; p = keystring; - *p++; + p++; if (strncmp(p, KW_ID, strlen(KW_ID)) == 0) return (KW_TYPE_ID); else if (strncmp(p, KW_AUTHOR, strlen(KW_AUTHOR)) == 0) diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c index f6cf65660a1..abb2a3f3b15 100644 --- a/usr.bin/rcs/rcsclean.c +++ b/usr.bin/rcs/rcsclean.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsclean.c,v 1.24 2006/03/06 14:59:06 jmc Exp $ */ +/* $OpenBSD: rcsclean.c,v 1.25 2006/03/15 05:05:36 deraadt Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -174,7 +174,7 @@ rcsclean_file(char *fname, RCSNUM *rev) c1 = cvs_buf_release(b1); c2 = cvs_buf_release(b2); - for (s1 = c1, s2 = c2; *s1 && *s2; *s1++, *s2++) { + for (s1 = c1, s2 = c2; *s1 && *s2; s1++, s2++) { if (*s1 != *s2) { match = 0; break; |