summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/gethost.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1997-06-13 15:52:43 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1997-06-13 15:52:43 +0000
commit6cc9c438667c56c0fb66e1b8d2366b6efb94805b (patch)
treecebcadbaa332f69410bf6438251c686168339687 /otherlibs/unix/gethost.c
parentf7ccaf7b6c4365b7b1b640949de3b3e54356782c (diff)
Eradication des warnings de gcc.
Nettoyages divers. Suppression de ioctl. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1597 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/gethost.c')
-rw-r--r--otherlibs/unix/gethost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/otherlibs/unix/gethost.c b/otherlibs/unix/gethost.c
index 4c141e8a6..5eb8f6790 100644
--- a/otherlibs/unix/gethost.c
+++ b/otherlibs/unix/gethost.c
@@ -11,6 +11,7 @@
/* $Id$ */
+#include <string.h>
#include <mlvalues.h>
#include <alloc.h>
#include <memory.h>
@@ -44,7 +45,7 @@ static value alloc_host_entry(entry)
value addr_list = Val_unit, addr = Val_unit;
Begin_roots4 (name, aliases, addr_list, addr);
- name = copy_string(entry->h_name);
+ name = copy_string((char *)(entry->h_name));
aliases = copy_string_array(entry->h_aliases);
entry_h_length = entry->h_length;
#ifdef h_addr