From c96f51e4b89bf84aa92161cc3c6cbaf1ad34d671 Mon Sep 17 00:00:00 2001 From: scf Date: Sat, 22 Sep 2007 02:30:44 +0000 Subject: 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 Approved by: wes Approved by: re (kensmith) --- lib/libc/stdlib/getenv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdlib/getenv.c') diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c index 26de922..2b7757e 100644 --- a/lib/libc/stdlib/getenv.c +++ b/lib/libc/stdlib/getenv.c @@ -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; } -- cgit v1.1