Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix typo bug found by Michael McConville - blind - suckless command-line video …
git clone git://git.suckless.org/blind
Log
Files
Refs
README
LICENSE
---
commit f5c5a803b516c2246339cec5e576f7e227729554
parent d8aa45da86d1128149fd7ab6ac3725bf8e88a1b1
Author: Mattias Andrée <[email protected]>
Date: Mon, 4 Dec 2017 22:37:14 +0100
Fix typo bug found by Michael McConville
Signed-off-by: Mattias Andrée <[email protected]>
Diffstat:
M src/util/efunc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git 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);
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.