<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] init warning



On Mon, May 19, 2008 at 06:50:17PM +0200, Rocco Rutte wrote:

>> The attached patch changes the print to use "%p" instead.
> Thanks, I've pushed it.

Hm. Something weird going on here; it's in the main mutt copy I keep synced
with hg, but any copies I make with "hg clone" don't have it in place.
That's ... weird. Maybe I need to understand Mercurial better.

Anyway - since that got accepted, here's another one. Same thing, but in
parse.c. :)

-- 
Paul
diff -r f467353f5657 parse.c
--- a/parse.c   Sat Mar 31 18:50:39 2007 -0700
+++ b/parse.c   Tue May 20 00:33:29 2008 +0100
@@ -1599,14 +1599,14 @@ int count_body_parts (BODY *body, int fl
       count++;
     bp->attach_qualifies = shallcount ? 1 : 0;
 
-    dprint(5, (debugfile, "cbp: %08x shallcount = %d\n", (unsigned int)bp, 
shallcount));
+    dprint(5, (debugfile, "cbp: %p shallcount = %d\n", (void *)bp, 
shallcount));
 
     if (shallrecurse)
     {
-      dprint(5, (debugfile, "cbp: %08x pre count = %d\n", (unsigned int)bp, 
count));
+      dprint(5, (debugfile, "cbp: %p pre count = %d\n", (void *)bp, count));
       bp->attach_count = count_body_parts(bp->parts, flags & 
~M_PARTS_TOPLEVEL);
       count += bp->attach_count;
-      dprint(5, (debugfile, "cbp: %08x post count = %d\n", (unsigned int)bp, 
count));
+      dprint(5, (debugfile, "cbp: %p post count = %d\n", (void *)bp, count));
     }
   }
 

Attachment: signature.asc
Description: Digital signature