The following commit has been merged in the master branch:
commit 5e93f805282257cbc7c86209e804dcfc256f3114
Author: Guillem Jover <[email protected]>
Date: Sun Dec 4 21:14:35 2011 +0100
libdpkg: Rename arch_list to arch_head
Make the variable name consistent with other head and tail references.
diff --git a/lib/dpkg/arch.c b/lib/dpkg/arch.c
index 54dd5bf..9a9c56c 100644
--- a/lib/dpkg/arch.c
+++ b/lib/dpkg/arch.c
@@ -96,7 +96,7 @@ static struct dpkg_arch arch_item_native = {
.type = arch_native,
.next = &arch_item_all,
};
-static struct dpkg_arch *arch_list = &arch_item_native;
+static struct dpkg_arch *arch_head = &arch_item_native;
static struct dpkg_arch *arch_builtin_tail = &arch_item_any;
static struct dpkg_arch *
@@ -133,7 +133,7 @@ dpkg_arch_find(const char *name)
if (name[0] == '\0')
return &arch_item_empty;
- for (arch = arch_list; arch; arch = arch->next) {
+ for (arch = arch_head; arch; arch = arch->next) {
if (strcmp(arch->name, name) == 0)
return arch;
last_arch = arch;
@@ -189,7 +189,7 @@ dpkg_arch_get(enum dpkg_arch_type type)
struct dpkg_arch *
dpkg_arch_get_list(void)
{
- return arch_list;
+ return arch_head;
}
/**
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]