diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-14 01:11:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-04-14 01:11:08 +0000 |
commit | f602d3ffece442efb97a8e704dcc645d7294cbcb (patch) | |
tree | a5875e978d68a3bfe6dd3385b164d723f3868856 /usr.bin/rcs/ident.c | |
parent | b5a6acaff30de7f91514e2b33a11fe886a22d288 (diff) |
excessive addition to brackets is a mental disease. you will go
blind, too. seek help. no binary change, ok joris
Diffstat (limited to 'usr.bin/rcs/ident.c')
-rw-r--r-- | usr.bin/rcs/ident.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/rcs/ident.c b/usr.bin/rcs/ident.c index c1248b16987..cc66501ca38 100644 --- a/usr.bin/rcs/ident.c +++ b/usr.bin/rcs/ident.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ident.c,v 1.14 2006/03/22 17:04:52 xsa Exp $ */ +/* $OpenBSD: ident.c,v 1.15 2006/04/14 01:11:07 deraadt Exp $ */ /* * Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org> * All rights reserved. @@ -88,14 +88,14 @@ ident_file(const char *filename, FILE *fp) else filename = "standard output"; - for (c = 0; c != EOF; (c = getc(fp))) { - if ((feof(fp)) || (ferror(fp))) + for (c = 0; c != EOF; c = getc(fp)) { + if (feof(fp) || ferror(fp)) break; if (c == KEYDELIM) ident_line(fp); } - if ((found == 0) && (verbose == 1)) + if (found == 0 && verbose == 1) fprintf(stderr, "ident warning: no id keywords in %s\n", filename); @@ -111,7 +111,7 @@ ident_line(FILE *fp) p = linebuf; while ((c = getc(fp)) != VALDELIM) { - if ((c == EOF) && (feof(fp) | ferror(fp))) + if (c == EOF && (feof(fp) | ferror(fp))) return; if (isalpha(c)) @@ -123,7 +123,7 @@ ident_line(FILE *fp) *(p++) = VALDELIM; while ((c = getc(fp)) != KEYDELIM) { - if ((c == EOF) && (feof(fp) | ferror(fp))) + if (c == EOF && (feof(fp) | ferror(fp))) return; if (c == '\n') |