summaryrefslogtreecommitdiffstats
path: root/usr.bin/catman
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-12-22 15:25:51 +0000
committerru <ru@FreeBSD.org>2004-12-22 15:25:51 +0000
commitf8a7e4173311d237039c512dfb2694fa4ca0aa1e (patch)
tree14cac4b4f137d99b40de71d4c263057b52b9f2e9 /usr.bin/catman
parentd365c986409e6495710508c25a3de7527bccbd68 (diff)
downloadFreeBSD-src-f8a7e4173311d237039c512dfb2694fa4ca0aa1e.zip
FreeBSD-src-f8a7e4173311d237039c512dfb2694fa4ca0aa1e.tar.gz
Fixed the only warning and mark as WARNS=6 clean.
Diffstat (limited to 'usr.bin/catman')
-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 ab4c014..d80a5fd 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 3298c41..c43781e 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) {
OpenPOWER on IntegriCloud