summaryrefslogtreecommitdiffstats
path: root/src/framework/lib_common_mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/lib_common_mem')
-rw-r--r--src/framework/lib_common_mem/common_api.c2
-rw-r--r--src/framework/lib_common_mem/common_buf.c1
-rw-r--r--src/framework/lib_common_mem/common_func.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/framework/lib_common_mem/common_api.c b/src/framework/lib_common_mem/common_api.c
index b535ee6..566b8be 100644
--- a/src/framework/lib_common_mem/common_api.c
+++ b/src/framework/lib_common_mem/common_api.c
@@ -29,7 +29,7 @@ sys_sem_init_v2 (sys_sem_t_v2 sem)
/** Returns the current time in milliseconds,
* may be the same as sys_jiffies or at least based on it. */
-long
+u32_t
sys_now (void)
{
struct timespec now;
diff --git a/src/framework/lib_common_mem/common_buf.c b/src/framework/lib_common_mem/common_buf.c
index 654bd46..877becf 100644
--- a/src/framework/lib_common_mem/common_buf.c
+++ b/src/framework/lib_common_mem/common_buf.c
@@ -123,7 +123,6 @@ nscomm_pal_module_init (common_mem_pal_module_info * pinfo)
{
PARA1_SET (argv, tempargv, agindex, "nStackMain");
- /*[DTS2017032711606 ][2017-04-08][z00353090] There are some unsafe function ,need to be replace with safe function */
retVal = SPRINTF_S (tempbuf, PATA_STRLENT, "0x");
if (-1 == retVal)
{
diff --git a/src/framework/lib_common_mem/common_func.c b/src/framework/lib_common_mem/common_func.c
index 0cf5b90..5220374 100644
--- a/src/framework/lib_common_mem/common_func.c
+++ b/src/framework/lib_common_mem/common_func.c
@@ -137,7 +137,7 @@ dmm_pktmbuf_pool_iterator (struct common_mem_mempool * mp, uint32_t start,
}
int32_t elm_size = mp->elt_size + mp->header_size + mp->trailer_size;
- struct common_mem_mbuf *elm_mbuf = (struct common_mem_mbuf *) (STAILQ_FIRST(&mp->mem_list)->addr + start * elm_size + mp->header_size); /*lint !e647 */
+ struct common_mem_mbuf *elm_mbuf = (struct common_mem_mbuf *) (STAILQ_FIRST (&mp->mem_list)->addr + start * elm_size + mp->header_size); /*lint !e647 */
uint32_t i;
uint32_t mbuf_end = COMMON_MEM_MIN (end, mp->size) - start;