From f50fae318d6dd4028b6aca25436053c28b07b0ea Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Wed, 14 Dec 2016 21:14:43 +0000 Subject: [PATCH] ed(1): drop redundant parenthesis. These were Left-over from the cleanup in r309936. --- bin/ed/buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ed/buf.c b/bin/ed/buf.c index 35b5d4d55dc1..68594a8ebb2d 100644 --- a/bin/ed/buf.c +++ b/bin/ed/buf.c @@ -64,7 +64,7 @@ get_sbuf_line(line_t *lp) } len = lp->len; REALLOC(sfbuf, sfbufsz, len + 1, NULL); - if ((fread(sfbuf, sizeof(char), len, sfp)) != len) { + if (fread(sfbuf, sizeof(char), len, sfp) != len) { fprintf(stderr, "%s\n", strerror(errno)); errmsg = "cannot read temp file"; return NULL; @@ -110,7 +110,7 @@ put_sbuf_line(const char *cs) seek_write = 0; } /* assert: SPL1() */ - if ((fwrite(cs, sizeof(char), len, sfp)) != len) { + if (fwrite(cs, sizeof(char), len, sfp) != len) { sfseek = -1; fprintf(stderr, "%s\n", strerror(errno)); errmsg = "cannot write temp file";