poldek: poldek/pkgset-req.c - cleanup

mis mis at pld-linux.org
Tue Jun 19 16:12:39 CEST 2007


Author: mis                          Date: Tue Jun 19 14:12:39 2007 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- cleanup

---- Files affected:
poldek/poldek:
   pkgset-req.c (1.48 -> 1.49) 

---- Diffs:

================================================================
Index: poldek/poldek/pkgset-req.c
diff -u poldek/poldek/pkgset-req.c:1.48 poldek/poldek/pkgset-req.c:1.49
--- poldek/poldek/pkgset-req.c:1.48	Sun Jun 17 22:24:47 2007
+++ poldek/poldek/pkgset-req.c	Tue Jun 19 16:12:34 2007
@@ -440,7 +440,7 @@
                               int strict)
 {
     struct pkg **suspkgs, pkgsbuf[1024], **matches;
-    int i = 0, nsuspkgs = 0, nmatches = 0, found = 0;
+    int nsuspkgs = 0, nmatches = 0, found = 0;
     
     
     if (packages)
@@ -455,11 +455,14 @@
     if (nsuspkgs == 0)          /* rpmlib() or other internal caps */
         return found;
 
-#if ENABLE_TRACE   
-    DBGF("%s: found %d suspected packages: ", capreq_snprintf_s(req), nsuspkgs);
-    for (i=0; i < nsuspkgs; i++)
-        msg(0, "%s, ", pkg_id(suspkgs[i]));
-    msg("\n");
+#if ENABLE_TRACE
+    do {
+        int i;
+        DBGF("%s: found %d suspected packages: ", capreq_snprintf_s(req), nsuspkgs);
+        for (i=0; i < nsuspkgs; i++)
+            msg(0, "%s, ", pkg_id(suspkgs[i]));
+        msg("\n");
+    } while(0);
 #endif
     
     found = 0;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/poldek/poldek/pkgset-req.c?r1=1.48&r2=1.49&f=u



More information about the pld-cvs-commit mailing list