diff options
author | Damien Doligez <damien.doligez-inria.fr> | 1998-10-26 19:19:32 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 1998-10-26 19:19:32 +0000 |
commit | 3be947947e3249a9b362fc790d377e43c4108a62 (patch) | |
tree | fa0c0fbdd5b3148f926e2f7f15090f7bd7d9a44d /otherlibs/unix/gethost.c | |
parent | 59cb8750d21154c767d7224cd0f726b5da62d59b (diff) |
nouvelles fonctions alloc/alloc_small
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/gethost.c')
-rw-r--r-- | otherlibs/unix/gethost.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/unix/gethost.c b/otherlibs/unix/gethost.c index 0a47b0f57..ef7df6c1a 100644 --- a/otherlibs/unix/gethost.c +++ b/otherlibs/unix/gethost.c @@ -5,7 +5,7 @@ /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ /* */ /* Copyright 1996 Institut National de Recherche en Informatique et */ -/* Automatique. Distributed only by permission. */ +/* en Automatique. Distributed only by permission. */ /* */ /***********************************************************************/ @@ -50,10 +50,10 @@ static value alloc_host_entry(struct hostent *entry) addr_list = alloc_array(alloc_one_addr, entry->h_addr_list); #else adr = alloc_one_addr(entry->h_addr); - addr_list = alloc_tuple(1); + addr_list = alloc_small(1, 0); Field(addr_list, 0) = adr; #endif - res = alloc_tuple(4); + res = alloc_small(4, 0); Field(res, 0) = name; Field(res, 1) = aliases; Field(res, 2) = entry->h_addrtype == PF_UNIX ? Val_int(0) : Val_int(1); |