From f602d3ffece442efb97a8e704dcc645d7294cbcb Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 14 Apr 2006 01:11:08 +0000 Subject: excessive addition to brackets is a mental disease. you will go blind, too. seek help. no binary change, ok joris --- usr.bin/rcs/ident.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.bin/rcs/ident.c') 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 * 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') -- cgit v1.2.3