From 4ba7f71dafadbe6bb01f608e8e35083afd6d1879 Mon Sep 17 00:00:00 2001 From: yar Date: Mon, 19 Jun 2006 17:12:25 +0000 Subject: There is a plenty of arch's out there where sizeof(size_t) != sizeof(int). A field width in printf(3) must be int, so cast return value from strlen() to the type. Noticed by: Andrzej Tobola ; tinderbox Pointy hat to: yar X-MFC with: the rest of the new asf code --- usr.sbin/asf/asf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/asf') diff --git a/usr.sbin/asf/asf.c b/usr.sbin/asf/asf.c index 7a30386..66f5717 100644 --- a/usr.sbin/asf/asf.c +++ b/usr.sbin/asf/asf.c @@ -266,7 +266,7 @@ usage(const char *myname) "\t-V\tuse kvm(3) to get the list of modules\n" "\t-X\tappend suffix to list of possible module file name suffixes\n" "\t-x\tclear list of possible module file name suffixes\n", - myname, strlen(myname), ""); + myname, (int)strlen(myname), ""); exit(2); } -- cgit v1.1