summaryrefslogtreecommitdiff
path: root/store/workben/t_file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'store/workben/t_file.cxx')
-rw-r--r--store/workben/t_file.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/store/workben/t_file.cxx b/store/workben/t_file.cxx
index 745fbbd978e9..058d04b3577a 100644
--- a/store/workben/t_file.cxx
+++ b/store/workben/t_file.cxx
@@ -24,6 +24,7 @@
#include "lockbyte.hxx"
+#include <string.h>
#include <stdio.h>
#include "osl/file.h"
@@ -91,7 +92,7 @@ int SAL_CALL main (int argc, char **argv)
}
sal_Char buffer[TEST_PAGESIZE];
- rtl_fillMemory (buffer, sizeof(buffer), sal_uInt8('B'));
+ memset (buffer, sal_uInt8('B'), sizeof(buffer));
sal_uInt32 i, k;
for (k = 0; k < 4; k++)
@@ -173,14 +174,14 @@ int SAL_CALL main (int argc, char **argv)
if (offset == 0)
{
sal_uInt32 magic = 256 * 4;
- if (rtl_compareMemory (&verify[index], &magic, sizeof(magic)))
+ if (memcmp (&verify[index], &magic, sizeof(magic)))
{
// Failure.
fprintf (stderr, "t_file: Unexpected value at 0x00000000\n");
}
index += 4;
}
- if (rtl_compareMemory (
+ if (memcmp (
&verify[index], &buffer[index], TEST_PAGESIZE - index))
{
// Failure.