Fix osl() wrapper.
authorAndre Noll <maan@systemlinux.org>
Fri, 12 Jun 2009 19:39:52 +0000 (21:39 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 12 Jun 2009 19:39:52 +0000 (21:39 +0200)
error.h

diff --git a/error.h b/error.h
index fb46ec5..3a601ed 100644 (file)
--- a/error.h
+++ b/error.h
@@ -505,7 +505,7 @@ _static_inline_ int osl(int ret)
 {
        if (ret >= 0)
                return ret;
-       return OSL_ERRNO_TO_PARA_ERROR(-ret);
+       return -OSL_ERRNO_TO_PARA_ERROR(-ret);
 }
 
 /**