summaryrefslogtreecommitdiff
path: root/graphics/png/patches/patch-ab
blob: 38be3ecba786af96fe5a8b63b34e88923d4db4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-ab,v 1.7 2004/08/09 07:37:35 recht Exp $

--- pngtest.c.orig	2004-08-08 04:42:44.000000000 +0200
+++ pngtest.c	2004-08-08 12:27:49.000000000 +0200
@@ -579,7 +579,7 @@
          }
          if (pinfo->next == NULL)
          {
-            fprintf(STDERR, "Pointer %x not found\n", (unsigned int)ptr);
+            fprintf(STDERR, "Pointer %p not found\n", ptr);
             break;
          }
          ppinfo = &pinfo->next;
@@ -1438,8 +1438,8 @@
                current_allocation);
             while (pinfo != NULL)
             {
-               fprintf(STDERR, " %lu bytes at %x\n", pinfo->size, 
-                 (unsigned int) pinfo->pointer);
+               fprintf(STDERR, " %lu bytes at %p\n", pinfo->size, 
+                 pinfo->pointer);
                pinfo = pinfo->next;
             }
          }
@@ -1513,8 +1513,8 @@
                 current_allocation);
              while (pinfo != NULL)
              {
-                fprintf(STDERR," %lu bytes at %x\n",
-                   pinfo->size, (unsigned int)pinfo->pointer);
+                fprintf(STDERR," %lu bytes at %p\n", pinfo->size,
+		  pinfo->pointer);
                 pinfo = pinfo->next;
              }
           }