General Public License for more details.
*/
-#include "includes.h"
-#include <errno.h>
-
#include "void_list.h"
#include "libbb/libbb.h"
elt->data = data;
}
-void_list_elt_t * void_list_elt_new (void *data) {
+static void_list_elt_t * void_list_elt_new (void *data) {
void_list_elt_t *elt;
/* freed in void_list_elt_deinit */
elt = xcalloc(1, sizeof(void_list_elt_t));
{
struct list_head *node;
- if (void_list_empty(list))
+ if (void_list_empty(list))
return NULL;
node = list->head.next;
list_del_init(node);
break;
}
if ( pos != old_elt) {
- fprintf(stderr, "%s: ERROR: element not found in list\n", __FUNCTION__);
+ opkg_msg(ERROR, "Internal error: element not found in list.\n");
return NULL;
}