From 2fdb3fc0b67757afd6fe7a244b6e14d2a546af0e Mon Sep 17 00:00:00 2001 From: graham.gower Date: Tue, 08 Dec 2009 20:20:03 -0500 Subject: Merge commit 'grg' into HEAD git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/active_list.c') diff --git a/libopkg/active_list.c b/libopkg/active_list.c index 6b177c6..ffc6db0 100644 --- a/libopkg/active_list.c +++ b/libopkg/active_list.c @@ -34,7 +34,7 @@ void active_list_init(struct active_list *ptr) { struct active_list * active_list_next(struct active_list *head, struct active_list *ptr) { struct active_list *next=NULL; if ( !head ) { - fprintf(stderr, "active_list_next head = %p, ptr = %p invalid value!!\n", head, ptr); + opkg_msg(ERROR, "Internal error: head=%p, ptr=%p\n", head, ptr); return NULL; } if ( !ptr ) @@ -56,7 +56,7 @@ struct active_list * active_list_next(struct active_list *head, struct active_li struct active_list * active_list_prev(struct active_list *head, struct active_list *ptr) { struct active_list *prev=NULL; if ( !head ) { - fprintf(stderr, "active_list_prev head = %p, ptr = %p invalid value!!\n", head, ptr); + opkg_msg(ERROR, "Internal error: head=%p, ptr=%p\n", head, ptr); return NULL; } if ( !ptr ) @@ -119,7 +119,7 @@ void active_list_add(struct active_list *head, struct active_list *node) { node->depended = head; } -struct active_list * active_list_head_new() { +struct active_list * active_list_head_new(void) { struct active_list * head = xcalloc(1, sizeof(struct active_list)); active_list_init(head); return head; -- cgit v0.9.1