Author: pfg
Date: Wed Dec 14 21:14:43 2016
New Revision: 310091
URL: https://svnweb.freebsd.org/changeset/base/310091

Log:
  ed(1): drop redundant parenthesis.
  
  These were Left-over from the cleanup in r309936.

Modified:
  head/bin/ed/buf.c

Modified: head/bin/ed/buf.c
==============================================================================
--- head/bin/ed/buf.c   Wed Dec 14 21:13:10 2016        (r310090)
+++ head/bin/ed/buf.c   Wed Dec 14 21:14:43 2016        (r310091)
@@ -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";
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to