From: Ralph Corderoy Date: Thu, 24 Aug 2017 12:18:01 +0000 (+0100) Subject: mhlist -debug: Print FILE pointers with `%p', not `%#x'. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/f22cf2b92424abe55f1322142d08516be452d68b?hp=aad7213c7ebca96dff5f141e0e26a165eba4e6b8 mhlist -debug: Print FILE pointers with `%p', not `%#x'. Removes the double casting. --- diff --git a/uip/mhlistsbr.c b/uip/mhlistsbr.c index a96843d9..461de6d7 100644 --- a/uip/mhlistsbr.c +++ b/uip/mhlistsbr.c @@ -303,9 +303,8 @@ list_debug (CT ct) 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); @@ -425,9 +424,8 @@ list_encoding (CT ct) { 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; }