diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-20 07:15:55 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-20 07:15:55 +0000 |
commit | 49d54362f1b55237206bb61dc87fcc0933ab2716 (patch) | |
tree | e429d124a9b0e47c886e6f1c3d9ae330ba906bb6 | |
parent | b23619e02a3b7167e5b798f8aa392f753714a708 (diff) | |
download | src-49d54362f1b55237206bb61dc87fcc0933ab2716.tar.gz src-49d54362f1b55237206bb61dc87fcc0933ab2716.zip |
Bogusness may have happened using a variable assignment here before, but
proper parens mean that fd is always set by open(2) [in any part of C],
and so we can accurately check for it returning -1, without feeling like
we need to initialise fd to -1 in its declaration.
In other words, fix a stylistic/bogus nit.
Notes
Notes:
svn path=/head/; revision=98481
-rw-r--r-- | bin/ed/buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ed/buf.c b/bin/ed/buf.c index b70346c3b170..4f36602dbdf2 100644 --- a/bin/ed/buf.c +++ b/bin/ed/buf.c @@ -193,7 +193,7 @@ char sfn[15] = ""; /* scratch file name */ int open_sbuf(void) { - int fd = -1; + int fd; int u; isbinary = newline_added = 0; |