X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Fsource%2Futils%2Fnr5g_fapi_memory.c;fp=fapi_5g%2Fsource%2Futils%2Fnr5g_fapi_memory.c;h=7bbb4a7e22d4fe433a53b53162f91e9d44da21ae;hp=fd14581a69d7ad716d5be05b13b753f303c19bbf;hb=892daba4c616407f16506415d5a69549519ef11d;hpb=76b4495d593ccf45d712db1a3ec96fa9d2d8f5f5 diff --git a/fapi_5g/source/utils/nr5g_fapi_memory.c b/fapi_5g/source/utils/nr5g_fapi_memory.c index fd14581..7bbb4a7 100644 --- a/fapi_5g/source/utils/nr5g_fapi_memory.c +++ b/fapi_5g/source/utils/nr5g_fapi_memory.c @@ -1,6 +1,6 @@ /****************************************************************************** * -* Copyright (c) 2019 Intel. +* Copyright (c) 2021 Intel. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,14 +22,16 @@ * **/ +#include "nr5g_fapi_memory.h" + #include #include #include "nr5g_fapi_wls.h" inline uint8_t nr5g_fapi_memcpy_bound_check( - void *d, + void * const d, size_t x, - const void *s, + const void * const s, size_t n) { // Memory block size and destination/source boundary check @@ -62,7 +64,7 @@ inline uint8_t nr5g_fapi_memcpy_bound_check( } inline uint8_t nr5g_fapi_memset_bound_check( - void *s, + void * const s, size_t x, int32_t c, size_t n) @@ -79,9 +81,9 @@ inline uint8_t nr5g_fapi_memset_bound_check( } inline uint8_t nr5g_fapi_strcpy_bound_check( - char *d, + char * const d, size_t x, - const char *s, + const char * const s, size_t n) { // Memory block size and destination/source boundary check