Skip to content

Commit 202ab59

Browse files
committed
add missing const in fuzz tests
1 parent 6b3a124 commit 202ab59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/fuzz/umfFuzz.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2024 Intel Corporation
1+
// Copyright (C) 2024-2025 Intel Corporation
22
// Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -12,7 +12,7 @@ constexpr int MAX_POOLS_ALLOC_SIZE = 1 * 1024; // 1 kB
1212
constexpr int MAX_PROVIDER_ALLOC_SIZE = 100 * 1024; // 100 kB
1313

1414
int umf_memory_provider_create(TestState &test_state) {
15-
umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps();
15+
const umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps();
1616
umf_os_memory_provider_params_handle_t params = NULL;
1717

1818
umf_result_t res = umfOsMemoryProviderParamsCreate(&params);
@@ -79,7 +79,7 @@ int umf_pool_create(TestState &test_state) {
7979
return -1;
8080
}
8181

82-
umf_memory_pool_ops_t *pool_ops = umfScalablePoolOps();
82+
const umf_memory_pool_ops_t *pool_ops = umfScalablePoolOps();
8383
void *pool_params = NULL;
8484
umf_pool_create_flags_t flags = 0;
8585
umf_memory_pool_handle_t pool;

0 commit comments

Comments
 (0)