diff options
author | Damien Doligez <damien.doligez-inria.fr> | 1996-09-05 17:35:43 +0000 |
---|---|---|
committer | Damien Doligez <damien.doligez-inria.fr> | 1996-09-05 17:35:43 +0000 |
commit | b98d99404663b038aff3fa73eb1e5149c0715e6b (patch) | |
tree | d4c51ec62c6699264591d18a22f39e8edca32a9e | |
parent | bdebe32659bcfb33c72b0499a5deacb78545cab8 (diff) |
hashtbl.mli: changé "unpredictable" en "unspecified"
header.c: supprimé l'appel à strlen (qui planterait sur big endian 64 bits)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@958 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | stdlib/hashtbl.mli | 2 | ||||
-rw-r--r-- | stdlib/header.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/hashtbl.mli b/stdlib/hashtbl.mli index 999886ad0..e31448b79 100644 --- a/stdlib/hashtbl.mli +++ b/stdlib/hashtbl.mli @@ -54,7 +54,7 @@ val iter : ('a -> 'b -> 'c) -> ('a, 'b) t -> unit discarding all the results. [f] receives the key as first argument, and the associated value as second argument. The order in which the bindings are passed to - [f] is unpredictable. Each binding is presented exactly once + [f] is unspecified. Each binding is presented exactly once to [f]. *) (*** The polymorphic hash primitive *) diff --git a/stdlib/header.c b/stdlib/header.c index de09bd8b6..3a8797002 100644 --- a/stdlib/header.c +++ b/stdlib/header.c @@ -12,13 +12,13 @@ /* $Id$ */ char * runtime_name = "ocamlrun"; -char * errmsg = "Cannot exec ocamlrun.\n"; +char errmsg [] = "Cannot exec ocamlrun.\n"; int main(argc, argv) int argc; char ** argv; { execvp(runtime_name, argv); - write(2, errmsg, strlen(errmsg)); + write(2, errmsg, sizeof(errmsg)-1); return 2; } |