aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-12-04 22:37:14 +0100
committerMattias Andrée <maandree@kth.se>2017-12-04 22:37:14 +0100
commitf5c5a803b516c2246339cec5e576f7e227729554 (patch)
tree7f689e724d55cbda2e9de122827f01ed3c1f3aa2 /src
parentupdate todo: tee is too slow (diff)
downloadblind-f5c5a803b516c2246339cec5e576f7e227729554.tar.gz
blind-f5c5a803b516c2246339cec5e576f7e227729554.tar.bz2
blind-f5c5a803b516c2246339cec5e576f7e227729554.tar.xz
Fix typo bug found by Michael McConville
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-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);
}