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 <ato iem pw edu pl>; tinderbox
Pointy hat to:	yar
X-MFC with:	the rest of the new asf code
This commit is contained in:
Yaroslav Tykhiy 2006-06-19 17:12:25 +00:00
parent 0a8d09fe8a
commit b4e9432020

View File

@ -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);
}