diff options
author | scf <scf@FreeBSD.org> | 2007-09-22 02:30:44 +0000 |
---|---|---|
committer | scf <scf@FreeBSD.org> | 2007-09-22 02:30:44 +0000 |
commit | c96f51e4b89bf84aa92161cc3c6cbaf1ad34d671 (patch) | |
tree | b6303298a6a7544bb12b0524cd3d883e093fa26c /lib/libc/stdlib | |
parent | 280a86b2ee7b98d7ca78ed442f3329cb4e4ce224 (diff) | |
download | FreeBSD-src-c96f51e4b89bf84aa92161cc3c6cbaf1ad34d671.zip FreeBSD-src-c96f51e4b89bf84aa92161cc3c6cbaf1ad34d671.tar.gz |
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)
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/getenv.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |