From 2c02ef2b7bb9bf64d4374b71b8d33804b245760b Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 13 Mar 2017 11:37:43 +0100 Subject: [PATCH] right printf format in testobsdrdr.c and tespfpinhole.c --- miniupnpd/pf/testobsdrdr.c | 4 ++-- miniupnpd/pf/testpfpinhole.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }