From 07916b2ff52cb94f26d6e09867c086d0da3c6433 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 25 Aug 2017 22:20:17 +0100 Subject: [PATCH] picksbr.c: fprintf function pointer with unsigned-long-long cast. It was previously a double cast, to unsigned long, and then to unsigned int, and formatted with `0x%x'. Now we're C99, at least, we can use unsigned long long and `%#llx'. Though the fprintf() in question should be a BUG() that abort(3)s. --- uip/picksbr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uip/picksbr.c b/uip/picksbr.c index 3f8a17c2..169a5bec 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -519,8 +519,7 @@ PRaction (struct nexus *n, int level) dasctime (&n->n_tws, TW_NULL)); return; } - fprintf (stderr, "UNKNOWN(0x%x)\n", - (unsigned int)(unsigned long) (*n->n_action)); + fprintf(stderr, "UNKNOWN(%#llx)\n", (unsigned long long)n->n_action); } -- 2.56.0