aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-12-22 15:25:51 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-12-22 15:25:51 +0000
commit482c89954da27c851665f654d4205ab16e186721 (patch)
tree14cac4b4f137d99b40de71d4c263057b52b9f2e9 /usr.bin
parent0ab4b272575bf471e0bd4f4b43bb0686c9921632 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/catman/Makefile1
-rw-r--r--usr.bin/catman/catman.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/catman/Makefile b/usr.bin/catman/Makefile
index ab4c01453a1b..d80a5fd8ae49 100644
--- a/usr.bin/catman/Makefile
+++ b/usr.bin/catman/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
PROG= catman
+WARNS?= 6
.include <bsd.prog.mk>
diff --git a/usr.bin/catman/catman.c b/usr.bin/catman/catman.c
index 3298c4101eb1..c43781e77c06 100644
--- a/usr.bin/catman/catman.c
+++ b/usr.bin/catman/catman.c
@@ -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) {