From 7dc65518819f2b453fd2837e92c115592d8832ec Mon Sep 17 00:00:00 2001 From: Swarup Nayak Date: Mon, 13 Aug 2018 19:23:34 +0530 Subject: Feat : LWIP integration part1 Change-Id: Ia26c092d16579c6f845a021ba66bde106363883a Signed-off-by: Swarup Nayak --- src/framework/lib_common_mem/common_api.c | 2 +- src/framework/lib_common_mem/common_buf.c | 1 - src/framework/lib_common_mem/common_func.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/framework/lib_common_mem') 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; -- cgit 1.2.3-korg