]> diplodocus.org Git - nmh/commitdiff
mhlist -debug: Print FILE pointers with `%p', not `%#x'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 24 Aug 2017 12:18:01 +0000 (13:18 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 24 Aug 2017 12:18:01 +0000 (13:18 +0100)
Removes the double casting.

uip/mhlistsbr.c

index a96843d9d43c9f9ea9f4a9791e68a143e2f1a355..461de6d74afdefa216f013fce145ba431e66e087 100644 (file)
@@ -303,9 +303,8 @@ list_debug (CT ct)
        fprintf (stderr, "      %s=\"%s\"\n", pm->pm_name,
                 get_param_value(pm, '?'));
 
        fprintf (stderr, "      %s=\"%s\"\n", pm->pm_name,
                 get_param_value(pm, '?'));
 
-    fprintf (stderr, "    read fp 0x%x file \"%s\" begin %ld end %ld\n",
-            (unsigned int)(unsigned long) ct->c_fp, FENDNULL(ct->c_file),
-            ct->c_begin, ct->c_end);
+    fprintf(stderr, "    read fp %p file \"%s\" begin %ld end %ld\n",
+        (void *)ct->c_fp, FENDNULL(ct->c_file), ct->c_begin, ct->c_end);
 
     /* print more information about transfer encoding */
     list_encoding (ct);
 
     /* print more information about transfer encoding */
     list_encoding (ct);
@@ -425,9 +424,8 @@ list_encoding (CT ct)
 {
     CE ce = &ct->c_cefile;
 
 {
     CE ce = &ct->c_cefile;
 
-    fprintf (stderr, "    decoded fp 0x%x file \"%s\"\n",
-            (unsigned int)(unsigned long) ce->ce_fp,
-            FENDNULL(ce->ce_file));
+    fprintf(stderr, "    decoded fp %p file \"%s\"\n",
+        (void *)ce->ce_fp, FENDNULL(ce->ce_file));
 
     return OK;
 }
 
     return OK;
 }