summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/ld/lib.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-30 20:48:45 +0000
committerbde <bde@FreeBSD.org>1998-06-30 20:48:45 +0000
commit755fd03ef8c4c7cd442a382538064abb074ea245 (patch)
tree1dc0fdd586975864287e9c69d45555db8113635e /gnu/usr.bin/ld/lib.c
parent53d1b984ceb16d702513f6990576840c1c5d7cd0 (diff)
downloadFreeBSD-src-755fd03ef8c4c7cd442a382538064abb074ea245.zip
FreeBSD-src-755fd03ef8c4c7cd442a382538064abb074ea245.tar.gz
Fixed printf format errors.
Diffstat (limited to 'gnu/usr.bin/ld/lib.c')
-rw-r--r--gnu/usr.bin/ld/lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/ld/lib.c b/gnu/usr.bin/ld/lib.c
index 1281933..1abd974 100644
--- a/gnu/usr.bin/ld/lib.c
+++ b/gnu/usr.bin/ld/lib.c
@@ -30,7 +30,7 @@
Set, indirect, and warning symbol features added by Randy Smith. */
/*
- * $Id$ - library routines
+ * $Id: lib.c,v 1.21 1997/02/22 15:46:22 peter Exp $ - library routines
*/
#include <sys/param.h>
@@ -130,7 +130,7 @@ decode_library_subfile(fd, library_entry, subfile_offset, length_loc)
if (sscanf(hdr1.ar_size, "%d", &member_length) != 1)
errx(1, "%s: malformatted header of archive member: %.*s",
get_file_name(library_entry),
- sizeof(hdr1.ar_name), hdr1.ar_name);
+ (int)sizeof(hdr1.ar_name), hdr1.ar_name);
subentry = (struct file_entry *) xmalloc(sizeof(struct file_entry));
bzero(subentry, sizeof(struct file_entry));
@@ -157,7 +157,7 @@ decode_library_subfile(fd, library_entry, subfile_offset, length_loc)
if (read(fd, name, namelen) != namelen)
errx(1, "%s: malformatted archive member: %.*s",
get_file_name(library_entry),
- sizeof(hdr1.ar_name), hdr1.ar_name);
+ (int)sizeof(hdr1.ar_name), hdr1.ar_name);
name[namelen] = 0;
content_length -= namelen;
starting_offset += namelen;
OpenPOWER on IntegriCloud