summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/errmsg.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2010-01-22 12:48:24 +0000
committerDamien Doligez <damien.doligez-inria.fr>2010-01-22 12:48:24 +0000
commit04b1656222698bd7e92f213e9a718b7a4185643a (patch)
tree6186d1ba1e00adb1232908f95cb92c299902a943 /otherlibs/win32unix/errmsg.c
parentbdc0fadee2dc9669818955486b4c3497016edda5 (diff)
clean up spaces and tabs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/errmsg.c')
-rw-r--r--otherlibs/win32unix/errmsg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/otherlibs/win32unix/errmsg.c b/otherlibs/win32unix/errmsg.c
index 20a8c8d58..9ce9dddb2 100644
--- a/otherlibs/win32unix/errmsg.c
+++ b/otherlibs/win32unix/errmsg.c
@@ -26,7 +26,7 @@ CAMLprim value unix_error_message(value err)
{
int errnum;
char buffer[512];
-
+
errnum = Is_block(err) ? Int_val(Field(err, 0)) : error_table[Int_val(err)];
if (errnum > 0)
return copy_string(strerror(errnum));
@@ -38,7 +38,6 @@ CAMLprim value unix_error_message(value err)
sizeof(buffer),
NULL))
return copy_string(buffer);
- sprintf(buffer, "unknown error #%d", errnum);
+ sprintf(buffer, "unknown error #%d", errnum);
return copy_string(buffer);
}
-