From b7b0859c3f4470d1bd2770f26c5af6f037833993 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 2 Aug 1998 16:06:35 +0000 Subject: Fixed printf format errors. --- sbin/ldconfig/ldconfig.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sbin/ldconfig') diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c index 301a871..197cf78 100644 --- a/sbin/ldconfig/ldconfig.c +++ b/sbin/ldconfig/ldconfig.c @@ -30,7 +30,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: ldconfig.c,v 1.23 1998/07/06 07:02:26 charnier Exp $"; #endif /* not lint */ #include @@ -381,7 +381,7 @@ buildhints() if (verbose) printf("Totals: entries %d, buckets %ld, string size %d\n", - nhints, hdr.hh_nbucket, strtab_sz); + nhints, (long)hdr.hh_nbucket, strtab_sz); /* Allocate buckets and string table */ blist = (struct hints_bucket *)xmalloc(n); @@ -511,13 +511,14 @@ readhints() hdr = (struct hints_header *)addr; if (HH_BADMAG(*hdr)) { - warnx("%s: bad magic: %lo", hints_file, hdr->hh_magic); + warnx("%s: bad magic: %lo", hints_file, + (unsigned long)hdr->hh_magic); return -1; } if (hdr->hh_version != LD_HINTS_VERSION_1 && hdr->hh_version != LD_HINTS_VERSION_2) { - warnx("unsupported version: %ld", hdr->hh_version); + warnx("unsupported version: %ld", (long)hdr->hh_version); return -1; } -- cgit v1.1