PR#2352, suite

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2004-04-15 16:18:16 +00:00
parent 0f8fe7fc59
commit 2560e53f70
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ CAMLprim value caml_sys_remove(value name)
CAMLprim value caml_sys_rename(value oldname, value newname)
{
if (rename(String_val(oldname), String_val(newname)) != 0)
caml_sys_error("Sys.rename");
caml_sys_error(NO_ARG);
return Val_unit;
}