commit f5c5a803b516c2246339cec5e576f7e227729554
Author:     Mattias Andrée <[email protected]>
AuthorDate: Mon Dec 4 22:37:14 2017 +0100
Commit:     Mattias Andrée <[email protected]>
CommitDate: Mon Dec 4 22:37:14 2017 +0100

    Fix typo bug found by Michael McConville
    
    Signed-off-by: Mattias Andrée <[email protected]>

diff --git a/src/util/efunc.h b/src/util/efunc.h
index 12608f8..3b21270 100644
--- a/src/util/efunc.h
+++ b/src/util/efunc.h
@@ -69,7 +69,7 @@ ewrite(int fd, void *buf, size_t n, const char *fname)
 {
        ssize_t ret = write(fd, buf, n);
        if (ret < 0) {
-               if (errno = ECONNRESET)
+               if (errno == ECONNRESET)
                        raise(SIGPIPE);
                eprintf("write %s:", fname);
        }

Reply via email to