summaryrefslogtreecommitdiff
path: root/sal/workben/testpipe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/workben/testpipe.cxx')
-rw-r--r--sal/workben/testpipe.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/sal/workben/testpipe.cxx b/sal/workben/testpipe.cxx
index 92790f38d..c3cdc5a01 100644
--- a/sal/workben/testpipe.cxx
+++ b/sal/workben/testpipe.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -43,8 +44,8 @@ const char szTestString[] = "This is a test";
char szBuffer[256];
const char * cp;
-Size_t n;
-sSize_t nChars;
+size_t n;
+sal_Int32 nChars;
// osl specific variables
oslPipe Pipe;
@@ -90,10 +91,9 @@ int main (int argc, const char *argv[])
0,
osl_Process_NORMAL,
0,
- NULL,
NULL,
- 0,
- NULL,
+ NULL,
+ 0,
&Process );
if( ProcessError != osl_Process_E_None )
@@ -157,8 +157,8 @@ int main (int argc, const char *argv[])
osl_freeProcessHandle( Process );
// schliesse die Pipes
- osl_destroyPipe( C1Pipe );
- osl_destroyPipe( Pipe );
+ osl_releasePipe( C1Pipe );
+ osl_releasePipe( Pipe );
printf( "TestPipe Server: test passed.\n" );
return 0;
@@ -166,3 +166,4 @@ int main (int argc, const char *argv[])
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */