summaryrefslogtreecommitdiffstats
path: root/sbin/ldconfig
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-02 16:06:35 +0000
committerbde <bde@FreeBSD.org>1998-08-02 16:06:35 +0000
commitb7b0859c3f4470d1bd2770f26c5af6f037833993 (patch)
treef19b09078f6555282c806798e61ed7b7b564fa2c /sbin/ldconfig
parentdbc09be291ed507f26f3b2f3fbad6b02ef6bf476 (diff)
downloadFreeBSD-src-b7b0859c3f4470d1bd2770f26c5af6f037833993.zip
FreeBSD-src-b7b0859c3f4470d1bd2770f26c5af6f037833993.tar.gz
Fixed printf format errors.
Diffstat (limited to 'sbin/ldconfig')
-rw-r--r--sbin/ldconfig/ldconfig.c9
1 files changed, 5 insertions, 4 deletions
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 <sys/param.h>
@@ -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;
}
OpenPOWER on IntegriCloud