aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/efunc.h2
1 files changed, 1 insertions, 1 deletions
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);
}