correct how to show size_t. %d -> %lu and cast to unsigned long.

reported by Rob Quinn.
This commit is contained in:
tshiozak 2003-06-27 15:42:12 +00:00
parent cc45dace72
commit f0108a1301
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: iconv.c,v 1.1 2003/06/27 05:21:55 tshiozak Exp $ */
/* $NetBSD: iconv.c,v 1.2 2003/06/27 15:42:12 tshiozak Exp $ */
/*-
* Copyright (c)2003 Citrus Project,
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: iconv.c,v 1.1 2003/06/27 05:21:55 tshiozak Exp $");
__RCSID("$NetBSD: iconv.c,v 1.2 2003/06/27 15:42:12 tshiozak Exp $");
#endif /* LIBC_SCCS and not lint */
#include <errno.h>
@ -130,7 +130,8 @@ do_conv(const char *fn, FILE *fp, const char *from, const char *to, int silent,
fwrite(outbuf, 1, OUTBUFSIZE-outbytes, stdout);
if (invalids > 0 && !silent)
warnx("warning: invalid characters: %d", invalids);
warnx("warning: invalid characters: %lu",
(unsigned long)invalids);
iconv_close(cd);
}