diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-12-04 22:37:14 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-12-04 22:37:14 +0100 |
| commit | f5c5a803b516c2246339cec5e576f7e227729554 (patch) | |
| tree | 7f689e724d55cbda2e9de122827f01ed3c1f3aa2 /src | |
| parent | update todo: tee is too slow (diff) | |
| download | blind-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.h | 2 |
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); } |
