aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-02 23:51:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-02 23:51:47 +0000
commite09bda322a2d39e6692b3dbd3ccf72bc86951737 (patch)
treee54b8db10a85d200a9a69e6086f2f003e34abcc4
parentfdm: rename struct fd -> struct handler (diff)
fdm: bug: 'ret' was renamed to 'r', and replaced with another 'ret'
-rw-r--r--fdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdm.c b/fdm.c
index 36b79524..e626b47f 100644
--- a/fdm.c
+++ b/fdm.c
@@ -164,7 +164,7 @@ fdm_poll(struct fdm *fdm)
bool ret = true;
fdm->is_polling = true;
- for (int i = 0; i < ret; i++) {
+ for (int i = 0; i < r; i++) {
struct handler *fd = events[i].data.ptr;
if (fd->deleted)
continue;