From 480538737a8a9be074a1848f2e52cf2d1ff4709f Mon Sep 17 00:00:00 2001 From: graham.gower Date: Wed, 04 Nov 2009 23:20:09 -0500 Subject: s/malloc/xmalloc/ s/calloc/xcalloc/ s/realloc/realloc/ And redundant error checking removed from the places where allocation failures were actually checked. git-svn-id: http://opkg.googlecode.com/svn/trunk@259 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/active_list.c') diff --git a/libopkg/active_list.c b/libopkg/active_list.c index 1d38d8d..6b177c6 100644 --- a/libopkg/active_list.c +++ b/libopkg/active_list.c @@ -21,6 +21,7 @@ #include #include +#include "libbb/libbb.h" void active_list_init(struct active_list *ptr) { INIT_LIST_HEAD(&ptr->node); @@ -119,7 +120,7 @@ void active_list_add(struct active_list *head, struct active_list *node) { } struct active_list * active_list_head_new() { - struct active_list * head = calloc(1, sizeof(struct active_list)); + struct active_list * head = xcalloc(1, sizeof(struct active_list)); active_list_init(head); return head; } -- cgit v0.9.1