X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=fapi_5g%2Fsource%2Futils%2Fnr5g_fapi_memory.c;h=7bbb4a7e22d4fe433a53b53162f91e9d44da21ae;hb=892daba4c616407f16506415d5a69549519ef11d;hp=92815fc37f3b2f496304d56066eb5a0126f1f0bd;hpb=81a09690b36b3a4e89b4dae34f30933de13f7f90;p=o-du%2Fphy.git diff --git a/fapi_5g/source/utils/nr5g_fapi_memory.c b/fapi_5g/source/utils/nr5g_fapi_memory.c index 92815fc..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" -uint8_t nr5g_fapi_memcpy_bound_check( - void *d, +inline uint8_t nr5g_fapi_memcpy_bound_check( + void * const d, size_t x, - const void *s, + const void * const s, size_t n) { // Memory block size and destination/source boundary check @@ -61,8 +63,8 @@ uint8_t nr5g_fapi_memcpy_bound_check( return SUCCESS; } -uint8_t nr5g_fapi_memset_bound_check( - void *s, +inline uint8_t nr5g_fapi_memset_bound_check( + void * const s, size_t x, int32_t c, size_t n) @@ -78,10 +80,10 @@ uint8_t nr5g_fapi_memset_bound_check( return SUCCESS; } -uint8_t nr5g_fapi_strcpy_bound_check( - char *d, +inline uint8_t nr5g_fapi_strcpy_bound_check( + char * const d, size_t x, - const char *s, + const char * const s, size_t n) { // Memory block size and destination/source boundary check