summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-12 12:14:02 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-12 14:19:49 +0100
commitc2627e8a95ffc81498133cb3f26527c8395064b8 (patch)
tree9043fcf4c6a0af5d7c474fd19960a90740002b72 /sal/osl
parentff29e2d893da04490a159f9bc7111199f5e368ff (diff)
Move OSL_ENSURE(0,...) to OSL_FAIL(...)
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/os2/socket.c2
-rw-r--r--sal/osl/unx/socket.c2
-rw-r--r--sal/osl/w32/file_error.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/os2/socket.c b/sal/osl/os2/socket.c
index b97dde7e3..fd00d18de 100644
--- a/sal/osl/os2/socket.c
+++ b/sal/osl/os2/socket.c
@@ -1605,7 +1605,7 @@ void SAL_CALL osl_releaseSocket( oslSocket pSocket )
#if defined(LINUX)
if ( pSocket->m_bIsAccepting == sal_True )
{
- OSL_ENSURE(0, "osl_destroySocket : attempt to destroy socket while accepting\n");
+ OSL_FAIL("osl_destroySocket : attempt to destroy socket while accepting\n");
return;
}
#endif /* LINUX */
diff --git a/sal/osl/unx/socket.c b/sal/osl/unx/socket.c
index 91cf06632..740959244 100644
--- a/sal/osl/unx/socket.c
+++ b/sal/osl/unx/socket.c
@@ -1656,7 +1656,7 @@ void SAL_CALL osl_releaseSocket( oslSocket pSocket )
#if defined(LINUX)
if ( pSocket->m_bIsAccepting == sal_True )
{
- OSL_ENSURE(0, "osl_destroySocket : attempt to destroy socket while accepting\n");
+ OSL_FAIL("osl_destroySocket : attempt to destroy socket while accepting\n");
return;
}
#endif /* LINUX */
diff --git a/sal/osl/w32/file_error.c b/sal/osl/w32/file_error.c
index 3d33cdfda..45ad7ed18 100644
--- a/sal/osl/w32/file_error.c
+++ b/sal/osl/w32/file_error.c
@@ -148,7 +148,7 @@ void _osl_warnFile( const char *message, rtl_uString *ustrFile )
message = szBuffer;
}
- OSL_ENSURE( 0, message );
+ OSL_FAIL( message );
}
#endif /* OSL_DEBUG_LEVEL */