chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@@@ tvec and tty mess
[mLib]
/
sel
/
sel.c
diff --git
a/sel/sel.c
b/sel/sel.c
index a0d9ed3549aa5101dd3f9a66189d62cb2966e9f1..8ccf862b554cd7a6bbd49ed930368bd3ec004575 100644
(file)
--- a/
sel/sel.c
+++ b/
sel/sel.c
@@
-379,7
+379,7
@@
int sel_select(sel_state *s)
sel_timer *t;
for (t = s->timers; t && TV_CMP(&t->tv, <=, &a.now); t = t->next) {
sel_timer *t;
for (t = s->timers; t && TV_CMP(&t->tv, <=, &a.now); t = t->next) {
-
pt = CREATE(ptimer
);
+
NEW(pt
);
pt->t = t;
t->pend = pt;
*ptt = pt;
pt->t = t;
t->pend = pt;
*ptt = pt;
@@
-422,7
+422,7
@@
int sel_select(sel_state *s)
for (f = s->files[i]; f; f = f->next) {
if (!FD_ISSET(f->fd, &a.fd[i]))
continue;
for (f = s->files[i]; f; f = f->next) {
if (!FD_ISSET(f->fd, &a.fd[i]))
continue;
-
pf = CREATE(pfile
);
+
NEW(pf
);
pf->f = f;
f->pend = pf;
*pff = pf;
pf->f = f;
f->pend = pf;
*pff = pf;