25 lines
719 B
Text
25 lines
719 B
Text
$NetBSD: patch-bb,v 1.1 2008/08/02 20:26:21 dholland Exp $
|
|
|
|
--- kkstrtext-0.1/kkstrtext.cc~ 2005-01-31 19:13:24.000000000 -0500
|
|
+++ kkstrtext-0.1/kkstrtext.cc 2008-08-02 16:08:30.000000000 -0400
|
|
@@ -430,9 +430,11 @@ int stringcompare(void *s1, void *s2) {
|
|
}
|
|
}
|
|
|
|
+#if 0 /* unused */
|
|
int intcompare(void *s1, void *s2) {
|
|
return (int) s1 != (int) s2;
|
|
}
|
|
+#endif
|
|
|
|
string i2str(int i) {
|
|
char buf[64];
|
|
@@ -885,7 +887,7 @@ string siconv(const string &atext, const
|
|
#ifdef HAVE_ICONV
|
|
iconv_t cd = iconv_open(tocs.c_str(), fromcs.c_str());
|
|
|
|
- if(((int) cd) != -1) {
|
|
+ if (cd != (iconv_t)-1) {
|
|
string r, text(atext);
|
|
size_t inleft, outleft, soutleft;
|
|
char *inbuf, *outbuf, *sinbuf, *soutbuf;
|