summaryrefslogtreecommitdiffstats
path: root/libopkg/void_list.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-08 20:20:03 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-08 20:20:03 (EST)
commit2fdb3fc0b67757afd6fe7a244b6e14d2a546af0e (patch)
treea5e28a26a07e429a753f29945cc8ba9c4f6c9884 /libopkg/void_list.c
parente4a49209222ea7385f64e9336425df115a3ea1a3 (diff)
Merge commit 'grg' into HEAD
git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/void_list.c')
-rw-r--r--libopkg/void_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/void_list.c b/libopkg/void_list.c
index f2b5890..04066bf 100644
--- a/libopkg/void_list.c
+++ b/libopkg/void_list.c
@@ -26,7 +26,7 @@ void void_list_elt_init(void_list_elt_t *elt, void *data)
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));
@@ -96,7 +96,7 @@ void *void_list_remove(void_list_t *list, void_list_elt_t **iter)
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;
}