Fixed the only warning and mark as WARNS=6 clean.

This commit is contained in:
Ruslan Ermilov 2004-12-22 15:25:51 +00:00
parent 0ab4b27257
commit 482c89954d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139183
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# $FreeBSD$
PROG= catman
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -710,7 +710,8 @@ determine_locale(void)
sep = strchr(locale, '_');
if (sep != NULL && isupper((unsigned char)sep[1])
&& isupper((unsigned char)sep[2])) {
asprintf(&lang_locale, "%.*s%s", sep - locale, locale, &sep[3]);
asprintf(&lang_locale, "%.*s%s", (int)(sep - locale),
locale, &sep[3]);
}
sep = nl_langinfo(CODESET);
if (sep != NULL && *sep != '\0' && strcmp(sep, "US-ASCII") != 0) {