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 )
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 )
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;