From a5851521bea799fa476f9e12028dc5dfa6de953c Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 14 Feb 2010 18:16:33 +0000 Subject: [PATCH] packer: fix printf modifiers to match types used Signed-off-by: Mike Frysinger git-svn-id: file:///tmp/cracklib-svn/trunk@160 4175fe1e-86d5-4fdc-8e6a-506fab9d8533 --- cracklib/NEWS | 1 + cracklib/util/packer.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cracklib/NEWS b/cracklib/NEWS index 654eba0..6986342 100644 --- a/cracklib/NEWS +++ b/cracklib/NEWS @@ -6,6 +6,7 @@ v2.8.16 update licensing information in Python extension (Jan Dittberner) add Korean translation (Eunju Kim) updated Russian translation (Yulia Poyarko) fix filename output in Python exceptions (Nalin Dahyabhai) + fix format strings in util/packer.c (Mike Frysinger) v2.8.15 allow building of Python extension outside source folder (Jan Dittberner) fix type on Python extension's trove classifier reflect license change discussion that was never actually implemented in the repository and update to LGPL diff --git a/cracklib/util/packer.c b/cracklib/util/packer.c index 688b247..cfb57a2 100644 --- a/cracklib/util/packer.c +++ b/cracklib/util/packer.c @@ -57,13 +57,13 @@ main(argc, argv) if (!buffer[0]) { - fprintf(stderr, "skipping line: %u\n", readed); + fprintf(stderr, "skipping line: %lu\n", readed); continue; } if (PutPW(pwp, buffer)) { - fprintf(stderr, "error: PutPW '%s' line %uy\n", buffer, readed); + fprintf(stderr, "error: PutPW '%s' line %luy\n", buffer, readed); } wrote++; @@ -71,7 +71,7 @@ main(argc, argv) PWClose(pwp); - printf("%u %u\n", readed, wrote); + printf("%lu %lu\n", readed, wrote); return (0); } -- 2.40.0