diff options
Diffstat (limited to 'src/pal/tests/palsuite/threading/GetProcessTimes')
-rw-r--r-- | src/pal/tests/palsuite/threading/GetProcessTimes/test2/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.cpp (renamed from src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.c) | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pal/tests/palsuite/threading/GetProcessTimes/test2/CMakeLists.txt b/src/pal/tests/palsuite/threading/GetProcessTimes/test2/CMakeLists.txt index 0ef7260204..8e905873e9 100644 --- a/src/pal/tests/palsuite/threading/GetProcessTimes/test2/CMakeLists.txt +++ b/src/pal/tests/palsuite/threading/GetProcessTimes/test2/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.12.2) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(SOURCES - test2.c + test2.cpp ) add_executable(paltest_getprocesstimes_test2 diff --git a/src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.c b/src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.cpp index 687facc584..cc39de609b 100644 --- a/src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.c +++ b/src/pal/tests/palsuite/threading/GetProcessTimes/test2/test2.cpp @@ -77,7 +77,7 @@ int __cdecl main( int argc, char **argv ) for( j=0; j<1000; j++ ) { /* do kernel work to increase system usage counters */ - total = malloc(1024 * 1024); + total = (int*)malloc(1024 * 1024); *total = j * i; for( k=0; k<1000; k++ ) |