The following commit has been merged in the master branch:
commit 0716206865109c3cdfc64c700adbf91a01f86364
Author: Guillem Jover <[email protected]>
Date:   Sun Nov 8 02:29:41 2009 +0100

    libdpkg: Remove unused dumpchain macro
    
    Got converted to a macro just to avoid a compiler warning in
    commit a1d9dc46c55fcc012854f8aa99058d5bb14c2a8a. The proper fix would
    have been to either remove it or use it, which we are doing now.

diff --git a/lib/dpkg/showpkg.c b/lib/dpkg/showpkg.c
index cc2369b..5d8b2f7 100644
--- a/lib/dpkg/showpkg.c
+++ b/lib/dpkg/showpkg.c
@@ -199,19 +199,6 @@ parseformat(const char *fmt)
        return head;
 }
 
-#define dumpchain(head) \
-{ \
-       const struct lstitem *ptr = head; \
-\
-       while (ptr) { \
-               printf("Type: %s\n", (ptr->type == string) ? "string" : 
"field"); \
-               printf("Width: %d\n", ptr->width); \
-               printf("Data: %s\n", ptr->data); \
-               printf("\n"); \
-               ptr = ptr->next; \
-       } \
-}
-
 void
 show1package(const struct lstitem *head, struct pkginfo *pkg)
 {

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to