aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-06-20 07:15:55 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-06-20 07:15:55 +0000
commit49d54362f1b55237206bb61dc87fcc0933ab2716 (patch)
treee429d124a9b0e47c886e6f1c3d9ae330ba906bb6 /bin
parentb23619e02a3b7167e5b798f8aa392f753714a708 (diff)
downloadsrc-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
Diffstat (limited to 'bin')
-rw-r--r--bin/ed/buf.c2
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;