mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Fixed the only warning and mark as WARNS=6 clean.
This commit is contained in:
parent
0ab4b27257
commit
482c89954d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139183
@ -1,5 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= catman
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user