Re: [OpenWrt-Devel] [PATCH 2/5] utils: refine calloc_a a bit.

2015-06-05 Thread Felix Fietkau
On 2015-06-04 15:41, Yousong Zhou wrote: - Return early on calloc() failure. - Correct comment text for __calloc_a(). Signed-off-by: Yousong Zhou yszhou4t...@gmail.com --- utils.c |4 utils.h |6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git

Re: [OpenWrt-Devel] [PATCH 2/5] utils: refine calloc_a a bit.

2015-06-05 Thread Yousong Zhou
On Jun 5, 2015 3:14 PM, Felix Fietkau n...@openwrt.org wrote: On 2015-06-04 15:41, Yousong Zhou wrote: - Return early on calloc() failure. - Correct comment text for __calloc_a(). Signed-off-by: Yousong Zhou yszhou4t...@gmail.com --- utils.c |4 utils.h |6 +++---

Re: [OpenWrt-Devel] [PATCH 2/5] utils: refine calloc_a a bit.

2015-06-05 Thread Felix Fietkau
On 2015-06-05 17:03, Yousong Zhou wrote: On Jun 5, 2015 3:14 PM, Felix Fietkau n...@openwrt.org mailto:n...@openwrt.org wrote: On 2015-06-04 15:41, Yousong Zhou wrote: - Return early on calloc() failure. - Correct comment text for __calloc_a(). Signed-off-by: Yousong Zhou