The precision for a string argument in a call to warnx() needs to be cast

to an int to remove the warning from using a size_t variable on 64-bit
platforms.

Submitted by:	Xin LI <delphij@FreeBSD.org>
Approved by:	wes
Approved by:	re (kensmith)
This commit is contained in:
Sean Farley 2007-09-22 02:30:44 +00:00
parent a5423ea313
commit 8e5b20fa9c

View File

@ -356,7 +356,8 @@ __build_env(void)
activeNdx = envVarsTotal - 1;
if (__findenv(envVars[envNdx].name, nameLen, &activeNdx,
false) == NULL) {
warnx(CorruptEnvFindMsg, nameLen, envVars[envNdx].name);
warnx(CorruptEnvFindMsg, (int)nameLen,
envVars[envNdx].name);
errno = EFAULT;
goto Failure;
}