summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/select.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1995-06-18 14:59:32 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1995-06-18 14:59:32 +0000
commit57c7dfd8fed5efd2d66f0b990941ade7382fa012 (patch)
tree9cdd73bbbe28d26728b28ee756f7ca3bbe147abd /otherlibs/unix/select.c
parent09b2d4a5d5bc7175e6cffcada45ee063f911f1ca (diff)
MAJ apres le changement de representation des constructeurs constants
(reste a tester). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@48 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/select.c')
-rw-r--r--otherlibs/unix/select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/unix/select.c b/otherlibs/unix/select.c
index 7015cdb75..14d063706 100644
--- a/otherlibs/unix/select.c
+++ b/otherlibs/unix/select.c
@@ -25,7 +25,7 @@ static void fdlist_to_fdset(fdlist, fdset)
{
value l;
FD_ZERO(fdset);
- for (l = fdlist; Tag_val(l) == 1; l = Field(l, 1)) {
+ for (l = fdlist; l != Val_int(0); l = Field(l, 1)) {
FD_SET(Int_val(Field(l, 0)), fdset);
}
}
@@ -36,10 +36,10 @@ static value fdset_to_fdlist(fdset)
int i;
Push_roots(roots, 1)
#define res roots[0]
- res = Atom(0);
+ res = Val_int(0);
for (i = FD_SETSIZE - 1; i >= 0; i--) {
if (FD_ISSET(i, fdset)) {
- value newres = alloc(2, 1);
+ value newres = alloc(2, 0);
Field(newres, 0) = Val_int(i);
Field(newres, 1) = res;
res = newres;