diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-06-20 07:15:55 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-06-20 07:15:55 +0000 |
commit | 50fc04895eb76b60616f6d3e870d849090dfbaec (patch) | |
tree | e429d124a9b0e47c886e6f1c3d9ae330ba906bb6 /bin | |
parent | df4ec1a7b33531691211023c1edbb1872d977b64 (diff) | |
download | FreeBSD-src-50fc04895eb76b60616f6d3e870d849090dfbaec.zip FreeBSD-src-50fc04895eb76b60616f6d3e870d849090dfbaec.tar.gz |
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.
Diffstat (limited to 'bin')
-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 b70346c..4f36602 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; |