diff --git a/miniupnpd/pf/testobsdrdr.c b/miniupnpd/pf/testobsdrdr.c index 13d9ee5..e865989 100644 --- a/miniupnpd/pf/testobsdrdr.c +++ b/miniupnpd/pf/testobsdrdr.c @@ -1,7 +1,7 @@ /* $Id: testobsdrdr.c,v 1.28 2014/03/06 13:02:47 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ - * (c) 2006-2014 Thomas Bernard + * (c) 2006-2017 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ @@ -118,7 +118,7 @@ main(int argc, char * * argv) printf("get_redirect_rule() failed\n"); else { - printf("\n%s:%d '%s' packets=%llu bytes=%llu\n", buf, (int)iport, desc, + printf("\n%s:%d '%s' packets=%" PRIu64 " bytes=%" PRIu64 "\n", buf, (int)iport, desc, packets, bytes); } diff --git a/miniupnpd/pf/testpfpinhole.c b/miniupnpd/pf/testpfpinhole.c index 8b68553..de3d4e0 100644 --- a/miniupnpd/pf/testpfpinhole.c +++ b/miniupnpd/pf/testpfpinhole.c @@ -2,7 +2,7 @@ /* vim: tabstop=4 shiftwidth=4 noexpandtab * MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ - * (c) 2012-2016 Thomas Bernard + * (c) 2012-2017 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ @@ -49,7 +49,7 @@ static int print_pinhole(int uid) uid, rem_host, rem_port, int_client, int_port, proto, timestamp); printf(" desc='%s'\n", desc); - printf(" packets=%llu bytes=%llu\n", packets, bytes); + printf(" packets=%" PRIu64 " bytes=%" PRIu64 "\n", packets, bytes); } return r; }