diff options
author | Guillem Jover <guillem@debian.org> | 2009-10-10 19:58:03 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-10-14 05:06:25 +0200 |
commit | 280f25e9b199b91f031097bad5ec52630e10bf76 (patch) | |
tree | 5587613a7fa841e845cde5caeb17179755d555ef /lib | |
parent | c644793d5ccaf02242d814ce79e45a4210481aa3 (diff) | |
download | dpkg-280f25e9b199b91f031097bad5ec52630e10bf76.tar.gz |
libdpkg: Rename symlinkList variables in TarExtractor()
Use the head, tail, node name convention.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/tarfn.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/dpkg/tarfn.c b/lib/dpkg/tarfn.c index e259d7b09..301f76ef1 100644 --- a/lib/dpkg/tarfn.c +++ b/lib/dpkg/tarfn.c @@ -173,13 +173,13 @@ TarExtractor(void *userData, const TarFunctions *functions) char *bp; char **longp; int long_read; - symlinkList *symListTop, *symListBottom, *symListPointer; + symlinkList *symlink_head, *symlink_tail, *symlink_node; next_long_name = NULL; next_long_link = NULL; long_read = 0; - symListBottom = symListPointer = symListTop = m_malloc(sizeof(symlinkList)); - symListTop->next = NULL; + symlink_tail = symlink_node = symlink_head = m_malloc(sizeof(symlinkList)); + symlink_head->next = NULL; h.Name = NULL; h.LinkName = NULL; @@ -239,13 +239,13 @@ TarExtractor(void *userData, const TarFunctions *functions) status = (*functions->MakeHardLink)(&h); break; case SymbolicLink: - memcpy(&symListBottom->h, &h, sizeof(TarInfo)); - symListBottom->h.Name = m_strdup(h.Name); - symListBottom->h.LinkName = m_strdup(h.LinkName); - symListBottom->next = m_malloc(sizeof(symlinkList)); + memcpy(&symlink_tail->h, &h, sizeof(TarInfo)); + symlink_tail->h.Name = m_strdup(h.Name); + symlink_tail->h.LinkName = m_strdup(h.LinkName); + symlink_tail->next = m_malloc(sizeof(symlinkList)); - symListBottom = symListBottom->next; - symListBottom->next = NULL; + symlink_tail = symlink_tail->next; + symlink_tail->next = NULL; status = 0; break; case CharacterDevice: @@ -310,16 +310,16 @@ TarExtractor(void *userData, const TarFunctions *functions) break; } - while (symListPointer->next) { + while (symlink_node->next) { if (status == 0) - status = (*functions->MakeSymbolicLink)(&symListPointer->h); - symListBottom = symListPointer->next; - free(symListPointer->h.Name); - free(symListPointer->h.LinkName); - free(symListPointer); - symListPointer = symListBottom; + status = (*functions->MakeSymbolicLink)(&symlink_node->h); + symlink_tail = symlink_node->next; + free(symlink_node->h.Name); + free(symlink_node->h.LinkName); + free(symlink_node); + symlink_node = symlink_tail; } - free(symListPointer); + free(symlink_node); free(h.Name); free(h.LinkName); |